Mitsubishi Electric MELSEC-L Special Instructions Manual page 69

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

Advertisement

Program example
• The following program receives data with an interrupt program.
[Structured ladder/FBD]
[ST]
(* Set the normal/error confirmation flag for the main program *)
(* The main program resets flags *)
SET(DX3, Var_Flag_Normal); (* Turns normal completion flag ON *)
SET(DX4, Var_Flag_Error); (* Turns error completion flag ON *)
(* Receives data from CH1 and stores the data in devices starting from D200 *)
Z_BUFRCVS(SM400, "00", 1, D200); (* Executes interrupt receive program *)
Turns normal completion
flag ON
Turns error completion
flag ON
Executes interrupt
receive program
5 MODULE DEDICATED INSTRUCTION
5.3 Serial Communication Instruction
5
67

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q

Table of Contents