Concept Of Program - Mitsubishi MELSEC-Q series Programming Manual

Process control instructions
Hide thumbs Also See for MELSEC-Q series:
Table of Contents

Advertisement

4.2

Concept of Program

[Program example using S.2PID instruction at execution cycle of 1s]
Loop tag memory setting
Operation constant setting
Setting of data for S.IN,
S.PHPL, S.2PID and S.OUT1
Execution cycle measurement
Input data (PV) setting
Import of data (PV) from
A/D converter module or like
MV output
Output of MV from D/A
converter module or like
Process control instruction
designation
S.IN instruction
S.PHPL instruction
S.2PID instruction
S.OUT1 instruction
34
Execution
command
T0
M0
SM400
P1
Loop tag memory setting
Operation constant setting
PLS M0
MOV U0\GO D0
CALL P1
RST T0
MOV D1 U2\G0
FLT D0 R0
S.IN
R0 R100 R200 R1000
EMOV R100 R20
S.PHPL R20 R120 R220 R1000
EMOV R120 R40
S.2PID R40 R140 R240 R1000 R300
EMOV R140 R60
S.OUT1 R60 R160 R260 R1000
INT
R160 D1
(1s)
K10
T0
FEND
RET

Advertisement

Table of Contents
loading

Table of Contents