Pid Control - Pid - Omron CPM1 Programming Manual

Hide thumbs Also See for CPM1:
Table of Contents

Advertisement

Special Instructions
Example
00001
5-26-15 PID CONTROL – PID(––)
Limitations
!Caution A total of 33 continuous words starting with P1 must be provided for PID(––)
Description
Word
Bits
P1
00 to 15
Set value (SV).
P1+1
00 to 15
Proportional band width.
In the following example, the 10 word range from DM 0010 to DM 0019 is
searched for addresses that contain the same data as DM 0000 (#FFFF).
Since DM 0012 contains the same data, the EQ Flag (SR 25506) is turned
ON and #0012 is written to DM 0001.
@SRCH(––)
#0010
DM 0010
DM 0000
DM 0010
DM 0011
DM 0012
DM 0013
DM 0014
DM 0015
DM 0016
DM 0017
DM 0018
DM 0019
Ladder Symbol
PID(––)
IW
P1
OW
This instruction is available in the CQM1-CPU4@-E/-EV1 only.
DM 6144 to DM 6655 cannot be used for IW, P1 to P1+32, or OW.
P1 to P1+32 must be in the same data area.
to operate correctly. Also, PID(––) may not operate dependably in any of the
following situations: In interrupt programs, in subroutines, between IL(02) and
ILC(03), between JMP(04) and JME(05), and in step programming
(STEP(08)/SNXT(09)). Do not program PID(––) in these situations.
PID(––) performs PID control based on the parameters specified in P1
through P1+6. The data in IW is used to calculate the output data that is writ-
ten to OW. The following table shows the function of the parameter words.
Parameter name
This is the target value for PID control. It can be set to any binary num-
ber with the number of bits set by the input range parameter.
This parameter specifies the proportional band width/input range ratio
from 0.1% to 999.9%. It must be BCD from 0001 to 9999.
Address Instruction
00000
LD
00001
@SRCH(––)
0000
9898
FFFF
9797
AAAA
9595
1414
0000
0000
FFFF
Operand Data Areas
IW: Input data word
IR, SR, AR, DM, HR, LR
P1: First parameter word
IR, SR, DM, HR, LR
OW: Output data word
IR, SR, AR, DM, HR, LR
Function/Setting range
Section 5-26
Operands
00001
#
0010
DM
0010
DM
0000
DM 0000
FFFF
DM 0001
0012
347

Advertisement

Table of Contents
loading

Table of Contents