欧姆龙PLC的数据类型
欧姆龙PLC的数据类型都有那些?分别是什么?可以拿CJ1M或CP1H来举例,如INT和UINT有什么区别?谢谢.还有其他类型的呢?能不能逐个讲下呢,谢谢...
欧姆龙PLC的数据类型都有那些?分别是什么?可以拿CJ1M或CP1H来举例,如INT和UINT有什么区别?
谢谢.
还有其他类型的呢?
能不能逐个讲下呢,谢谢 展开
谢谢.
还有其他类型的呢?
能不能逐个讲下呢,谢谢 展开
2个回答
展开全部
首先得明确,你说的都是数据类型。但不同的数据类型,和工业现场的不同物理量,是相关联的。
1、bool,比如omron的ir区,是bit(位)的概念,它只有两个状态,0或1,实际等同于开关量输入信号;可与现场的开关量连接,用于逻辑处理;
2、word是字,一个字有16个位,比如你用的omron-c200he主机,输入00200~00215共16个开关量的位(16个开关量输入),它们组合可以构成一个字。这个字是包含16个位的二进制数据。这就通常用于数据计算了。
3、chanel是通道,专指i/o(输入/输出)通道。这个通道可以是开关量,也可以是模拟量。
开关量你一定知道了,omron的ad003模拟量输入,在工作时,是需要占用一定的dm
数据区的(用于定义滤波、输入通道有效等),同时cpu通过总线底板读入模入数据,也是一个通道(实际也是一个字)四位16进制数,0~0fa0,也是16位二进制数。在模拟量数据采集中常会用到,你在cx-p编程软件的符号一栏中,可以看到chanel。
4、udint也是指数据类型,不是什么信号,int是整型数据,udint是32位0~4294967295整型。
1、bool,比如omron的ir区,是bit(位)的概念,它只有两个状态,0或1,实际等同于开关量输入信号;可与现场的开关量连接,用于逻辑处理;
2、word是字,一个字有16个位,比如你用的omron-c200he主机,输入00200~00215共16个开关量的位(16个开关量输入),它们组合可以构成一个字。这个字是包含16个位的二进制数据。这就通常用于数据计算了。
3、chanel是通道,专指i/o(输入/输出)通道。这个通道可以是开关量,也可以是模拟量。
开关量你一定知道了,omron的ad003模拟量输入,在工作时,是需要占用一定的dm
数据区的(用于定义滤波、输入通道有效等),同时cpu通过总线底板读入模入数据,也是一个通道(实际也是一个字)四位16进制数,0~0fa0,也是16位二进制数。在模拟量数据采集中常会用到,你在cx-p编程软件的符号一栏中,可以看到chanel。
4、udint也是指数据类型,不是什么信号,int是整型数据,udint是32位0~4294967295整型。
展开全部
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 E234Eis equivalent to typing E1234Eas 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.
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 E234Eis equivalent to typing E1234Eas 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.
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询