Data transfer via network
790
Part III FP Instructions
Variable Data type Function
s1 DWORD 32-bit area for storing control data
s2 type of source operands for storing data in the destination
station. Be sure to select the area by setting the address 0
(e.g. DT0 or WR0, ...) (source data area at another station)
d starting 16-bit area address for the source operand specified
in s2 (source data area at another station)
n*
ANY16
starting 16-bit area address for storing data received
(destination data area at source station)
Must be a constant
The variables s2 and d have to be the same data type.
For Relay T/C Register Constant
s1 DWX DWY DWR DWL DSV DEV DDT DLD DFL -
s2 WX WY WR WL SV EV DT LD FL -
d - WY WR WL SV EV DT LD FL
n* - - - - - - - - - dec. or hex.
Data types
Operands
Example
In this example the function has been programmed in ladder diagram (LD) and structured text
(ST).The same POU header is used for all programming languages.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
When the variable start is set to TRUE, the function is carried out.
LD
ST
When programming with structured text, enter the following:
IF start THEN
F146_RECV( s1_Control:= control_value, s2_AdrType:= start_address,
n_AdrOffs:= offset,
d_Start:= output_value);
END_IF;