您现在所在的是:

PLC论坛

回帖:1个,阅读:1406 [上一页] [1] [下一页]
3055
liuguoxing
文章数:526
年度积分:-154
历史总积分:3055
注册时间:2005/8/6
发站内信
发表于:2011/9/28 11:38:21
#0楼

欧姆龙PLC 数据类型

BOOL Address of a binary bit - a logical Boolean on or off state. This type is typically used for contacts or coils.

CHANNEL This is a special data type, for backward compatibility. It is an address (non-bit) to data of any type (unsigned or signed, one or more words), so can be used in place of any of the above data-types except NUMBER and BOOL. The data type is weak, and so checking is limited (e.g. CX-Programmer cannot check if the address is being used for BCD or binary values).

DINT Address of a signed, double binary word.

INT Address of a signed, single binary word.

LINT Address of a signed, quad binary word.

NUMBER A literal numeric value. Not an address. The value can be signed, or floating point.

NUMBERs are used for any literal value or for timer/counter identifiers (in this case, only unsigned integer values are allowed). Floating point values are only suitable within IEEE REAL type operands.

Note: when used as BCD number operands, the value is treated as a hexadecimal value (e.g. using a NUMBER E234Eis equivalent to typing E1234Eas the operand, so that the decimal interpretation is made of the value). The value of a NUMBER data type is assumed to be decimal, unless it is prefixed with ''''#'''' for a hexadecimal value.

REAL Address of a double word floating point value (IEEE format - use the UDINT
type for the BCD, FDIV format).

LREAL Address of a long word floating point value (IEEE format - use the
ULINT type for the BCD format).
UDINT Address of an unsigned, double binary word.
UDINT_BCD Address of an unsigned, double BCD word.

UINT Address of an unsigned, single binary word.

UINT_BCD Address of an unsigned, single BCD word

ULINT Address of an unsigned, quad binary word.

ULINT_BCD Address of an unsigned, quad BCD word.

WORD Address of a bit string of 16 bits.

DWORD Address of a bit string of 32 bits.

LWORD Address of a bit string of 64 bits.

图
附件




[此贴子已经被作者于2011/9/28 16:07:15编辑过]
此帖来自中华工控网工控博客
原文件地址:http://blog.gkong.com/more.asp?id=144456&Name=liuguoxing
1495
qdgeng886
文章数:305
年度积分:50
历史总积分:1495
注册时间:2006/10/5
发站内信
发表于:2011/9/28 14:03:43
#1楼
不错,学习了!

关于我们 | 联系我们 | 广告服务 | 本站动态 | 友情链接 | 法律声明 | 非法和不良信息举报

工控网客服热线:0755-86369299
版权所有 工控网 Copyright©2025 Gkong.com, All Rights Reserved

62.4004