Concept Of Program - Mitsubishi Electric MELSEC-Q QnPHCPU Programming Manual

Table of Contents

Advertisement

4 HOW TO EXECUTE PROCESS CONTROL INSTRUCTIONS

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
4
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
4 - 2
Loop tag memory setting
Operation constant setting
Execution
command
T0
M0
SM400
P1
MELSEC-Q
(1s)
K10
T0
PLS M0
MOV U0\GO D0
CALL P1
RST T0
MOV D1 U2\G0
FEND
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
RET
4 - 2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q qnprhcpu

Table of Contents