AX Seri es-St andard I nst ruct i ons Manual
1.2 DFC_XCH
Supported Products
•
AX series
DFC_XCH: Data exchange between two variables.
FB/FC
Instruction
FC
DFC_XCH
Inputs
•
Name
pSrc1
pSrc2
The length of data for
dwNum
exchange.(Unit: Byte)
*Note: The variable types BYTE, WORD and DWORD can be used for dNum input.
Outputs
•
Name
DFC_XCH
ErrorID
Function
•
After executing this Function, the value of variable1 (pSrc1) will be copied to variable2 (pSrc2), while the length of copied data is
determined by dwNum input.
Function
Memory address of
variable1
Memory address of
variable2
Function
Execution result
(Return type)
Error code
Graphic Expression
Data Type
POINTER TO BYTE
POINTER TO BYTE
DWORD*
Data Type
BOOL
DL_MOV_ERROR
ST Language
DFC_XCH(
pSrc1:= ,
pSrc2:= ,
dwNum:= ,
ErrorID=> );
Setting Value
(Default value)
Memory address (0)
Memory address (0)
1 ~ 65535
Positive integer(0)
Output Range
(Default value)
True/False(False)
DL_MOV_ERROR(DFC_NO_ERROR)
Chapt er 1
7