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


 
5.4 Network Dedicated Instruction
5.4.22 REMFR instruction
5-211
Z_REMFR
5
MODULE DEDICATED
INSTRUCTION
Z_REMFR
Function
This instruction reads data from the buffer memory of an intelligent function module to the host
station’s word device (starting from ) on the intelligent device station/remote I/O station.
Program Example
The following program reads digital output values.
[Structured ladder/FBD]
[ST]
IF((X21=TRUE) AND (X1020=TRUE) AND (X102E=TRUE) AND (Y1029=FALSE))THEN
Z_REMFR(TRUE,"J1",2,1,H2,10,4,D10,Var_Result);
(* Reads data from buffer memory *)
(*Reads digital values of CH1 to CH3 at once*)
IF((Var_Result[0]=TRUE) AND (Var_Result[1]=FALSE))THEN
IF(D10.0=TRUE)THEN
MOV(TRUE,D11,D21);
(* Reads CH1 digital output value *)
END_IF;
IF(D10.1=TRUE)THEN
MOV(TRUE,D12,D22);
(* Reads CH2 digital output value *)
END_IF;
IF(D10.2=TRUE)THEN
MOV(TRUE,D13,D23);
(* Reads CH3 digital output value *)
END_IF;
END_IF;
END_IF;
d1
Reads data from
buffer memory
Reads CH1 digital
value
Reads CH2 digital
value
Reads CH3 digital
value