Mitsubishi Electric MELSEC-L Special Instructions Manual page 87

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

Advertisement

[ST]
PLS(X50, Var_Flag_Inst); (* Registration request pulse *)
IF(Var_Flag_Inst=TRUE)THEN
MOV(TRUE, 1, Var_ControlData[0]); (* Sets registration request *)
MOV(TRUE, H3E8, Var_ControlData[2]); (* Sets user frame number *)
MOV(TRUE, 10, Var_ControlData[3]); (* Sets number of registered bytes *)
MOV(TRUE, H3946, Var_Frame[0]); (* User frame 0 *)
MOV(TRUE, H3030, Var_Frame[1]); (* User frame 1 *)
MOV(TRUE, H3030, Var_Frame[2]); (* User frame 2 *)
MOV(TRUE, H4646, Var_Frame[3]); (* User frame 3 *)
MOV(TRUE, H3030, Var_Frame[4]); (* User frame 4 *)
TO(TRUE, 1, H08, H2000, 1); (* Sets write enable in flash ROM side *)
G_PUTE(TRUE, H08, Var_ControlData,Var_Frame[0], Var_Result); (* Registers 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
5.3 Serial Communication Instruction
5
85

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q

Table of Contents