Mitsubishi Electric MELSEC-L Special Instructions Manual page 90

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

Advertisement

[ST]
PLS(X51, Var_Flag_Inst); (* Read request pulse *)
IF(Var_Flag_Inst=TRUE)THEN
MOV(TRUE, 0, Var_ControlData[0]);
MOV(TRUE, H3E8, Var_ControlData[2]); (* Sets user frame number *)
MOV(TRUE, 80, Var_ControlData[3]); (* Sets allowable number of bytes for read data *)
FMOV(TRUE, 0, 40, Var_Frame[0]); (* Clears user frame to 0 *)
G_GETE(TRUE, H08, Var_ControlData, Var_Frame[0], Var_Result); (* Reads user frame *)
END_IF;
IF(Var_Result[0]=TRUE)THEN (* Execution finished *)
IF(Var_Result[1]=FALSE)THEN (* Normal completion *)
SET(TRUE, Var_Flag_Normal); (* Turns normal completion flag ON *)
ELSE (* Error completion *)
SET(TRUE, Var_Flag_Error); (* Turns error completion flag ON *)
END_IF;
END_IF;
5 MODULE DEDICATED INSTRUCTION
88
5.3 Serial Communication Instruction

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q

Table of Contents