Mitsubishi Electric MELSEC-L Special Instructions Manual page 205

Melsec-q/l structured programming manual
Hide thumbs Also See for MELSEC-L:
Table of Contents

Advertisement

[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 *)
(* Process on normal completion *)
ELSE (* Error completion *)
(* Process on error completion *)
END_IF;
END_IF;
5 MODULE DEDICATED INSTRUCTION
5.4 Network Dedicated Instruction
5
203

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q

Table of Contents