Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 1195

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Concept of program
This section describes the concept of programs using process control instructions.
Ex.
Program example using the S.2PID instruction in an execution cycle of 1 second
(1)
(7)
(2)
(8)
(9)
(3)
T0
M0
(4)
(5)
SM400
P1
(6)
For specific program examples using process control instructions, refer to the following.
Page 2077 Process Control Program Examples
(1s)
K10
T0
PLS M0
MOV U0¥G0 D0
\
CALL P1
RST T0
MOV D1 U2¥G0
\
FEND
INT2FLT D0 R0
S.IN R0 R100 R200 R1000
EMOV R100 R20
S.PHPL R20 R120 "" R1000
EMOV R120 R40
S.2PID R40 R140 R240 R1000 R300
EMOV R140 R60
S.OUT1 R60 R160 R260 R1000
FLT2INT R160 D1
RET
(1) Setting loop tag memory
(2) Setting operation constants
• Setting data for S.IN, S.PHPL, S.2PID, and S.OUT1
(3) Measuring the execution cycle
(4) Setting input data (PV)
• Reading PV from such as the A/D conversion module
(5) MV output
• Outputting MV from such as the D/A conversion module
(6) Specifying process control instructions
• S.IN instruction
• S.PHPL instruction
• S.2PID instruction
• S.OUT1 instruction
(7) Setting loop tag memory
(8) Setting operation constants
(9) Executing a command
11 PROCESS CONTROL INSTRUCTIONS
11
1193
11.1 Overview

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents