2 Instruction Descriptions
2-348
NJ-series Instructions Reference Manual (W502)
The Copy**To*** instruction copies the content of copy source In directly to copy destination Out.
There are two instructions depending on the data types of In and Out.
The following example for the CopyRealToDword instruction is for when In is REAL#2.5.
Function
In Out Instruction
REAL DWORD CopyRealToDword
LREAL LWORD CopyLrealToLword
abc:=CopyRealToDword(REAL#2.5);
LD ST
REAL#2.5
abc
CopyRealToDword
EN ENO
In
In
Out = abc
DWORD#16#40200000
(2#01000000_00100000_00000000_00000000)
REAL#2.5
(2#01000000_00100000_00000000_00000000)