2 Instruction Descriptions
2-342
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 CopyDwordToReal instruction is for when In is DWORD#16#40200000.
Function
In Out Instruction
DWORD REAL CopyDwordToReal
LWORD LREAL CopyLwordToLreal
abc:=CopyDwordToReal(DWORD#16#40200000);
LD
ST
DWORD#16#40200000
abc
CopyDwordToReal
EN ENO
In
In
Out = abc
DWORD#16#40200000
(DWORD#2#01000000_00100000_00000000_00000000)
REAL#2.5
(2#01000000_00100000_00000000_00000000)