2-347
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Data Movement Instructions
2
Copy**To*** (Real Number to Bit String)
Copy**To*** (Real Number to Bit
String)
The Copy**To*** instruction copies the content of a real number directly to a bit string.
Instruction Name FB/FUN Graphic expression ST expression
Copy**To*** Bit Pattern Copy
(Real Number to Bit
String) Group
FUN Out:=CopyRealToDword(In);
or
Out:=CopyLrealToLword(In);
Variables
Name Meaning I/O Description Valid range Unit Default
In Copy
source
Input Copy source Depends on data type.
--- 0.0
Out Copy
destination
Output Copy destination Depends on data type.
--- ---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In OK OK
Out Must be DWORD if the data type of In is REAL and LWORD if the data type of In is LREAL.
(@)CopyRealToDword
EN ENO
In Out
(@)CopyLrealToLword
EN ENO
In Out