5 MODULE DEDICATED INSTRUCTION
5.4 Network Dedicated Instruction
203
5
[ST]
IF(SM400=TRUE)THEN (* Always ON *)
MOV(TRUE,U0\G20480,K4M0); (* Open completion signal/connection 1 open completion signal *)
MOV(TRUE,U0\G20482,K4M20); (* Open request signal/connection 1 open request signal *)
MOV(TRUE,U0\G20485,K4M40); (* Fixed buffer receive status signal/fixed buffer 1 receive status signal *)
END_IF;
(* Program to receive fixed buffer number 1 (main program) *)
IF((X19=TRUE) AND (M0=TRUE) AND (M40=TRUE) AND (M500=FALSE))THEN (* Initialization normal completion signal/connection 1 normal open
completion signal *)
(* Fixed buffer 1 receive status signal/receive instruction completion signal *)
PLS(TRUE,Var_Flag_Exe); (* Receive instruction 1PLS *)
END_IF;
IF(Var_Flag_Exe=TRUE)THEN (* Receive instruction 1PLS *)
ZP_BUFRCV(TRUE,"U0",1,Var_ControlData,D500,Var_Result); (* Reads data in fixed buffer communication *)
END_IF;
IF(Var_Result[0]=TRUE)THEN (* Execution finished *)
IF(Var_Result[1]=FALSE)THEN (* Normal completion *)
ELSE (* Error completion *)
END_IF;
END_IF;
(* Process on normal completion *)
(* Process on error completion *)
Summary of Contents for MELSEC System Q
Page 1: ...MELSEC Q L Structured Programming Manual Special Instructions ...
Page 2: ......
Page 307: ...10 SFC CONTROL INSTRUCTION 10 2 SFC Transition Condition Comment Read 305 10 MEMO ...
Page 309: ...I 307 MEMO ...
Page 315: ......