Mitsubishi Electronics MELSEC Q series MELSEC L series Home Theater Server User Manual


 
5-182
5.4 Network Dedicated Instruction
5.4.14 RECVS instruction
Z_RECVS
Program Example
The following program reads data, which is sent from the station number 1 by the SEND
instruction, from the channel 5 of the station number 2 (host station) and stores the data to the
devices from D770 to D773 of the station number 2 (host station) when an interruption program
starts up.
For the SEND instruction, refer to the following section.
Section 5.4.12 SEND instruction
[Structured ladder/FBD]
[ST]
IF (SM400=TRUE) THEN
MOV(TRUE,H0,Var_ControlData[0]); (* Sets execution/error completion type *)
MOV(TRUE,5,Var_ControlData[2]); (* Sets host station channel *)
Z_RECVS(TRUE,"00",Var_ControlData,D770,Var_Dummy);
(* Performs readout *)
END_IF;
Sets execution/error
completion type
Sets host station
channel
Performs readout
Process on completion of readout
(* Process on completion of readout *)