歐姆龍plc數(shù)據(jù)類型
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.