![Omron NX1P Скачать руководство пользователя страница 24](http://html1.mh-extra.com/html/omron/nx1p/nx1p_programming-manual_742781024.webp)
24
1-3-3
Benefit of Using Data Types
When special instructions are used for a traditional PLC such as CJ2, different instructions
must be used for different types of data.
With the NX1P, operands of special instructions are specified with variables. As the
variables contain data types, there is no need to use different instructions for different data
types.
Even when the data length is changed from 16 bits to 32 bits, all you have to do is change
the data type. You don’t need to change the program or allocate memory.
The concepts of “programming with variables” and “data types” based on the international
standard IEC 61131-3 are rapidly spreading.
●
CJ2 or traditional PLC
●
NX1P
Different special instructions for
different types or lengths of data.
MOV, MOVL, MOVF, etc.
MOVE instruction only.
Specify the appropriate data types for
move source In and move destination
Out when the type or length of data is
changed.
Move 16-bit value
⇒
INT
Move 32-bit value
⇒
DINT
Move floating-point value
⇒
REAL