Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual page 444

Hide thumbs Also See for CPM1 - PROGRAMING MANUAL 02-2001:
Table of Contents

Advertisement

Data Control Instructions
Example
25313
(Always ON)
00101
00100
Signed hex.
6
3
0005
7-18-4 PID CONTROL – PID(––)
Limitations
!
Caution
426
The status of 00101 determines the sign of the BCD source word in the following
example. If 00101 is ON, then the source word is negative. When 00100 is
turned ON, the BCD source data in LR 02 is converted to signed binary accord-
ing to the parameters in DM 0000 to DM 0004. The result is then written to
DM 0100. (In the second conversion, the signed binary equivalent of –1035 is
less than the lower limit specified in DM 0004, so the lower limit is written to
DM 0100.)
CLC(41)
STC(40)
@SCL3(––)
LR 02
DM 0000
DM 0100
DM 0000
0005
DM 0001
0003
DM 0002
0006
BCD
DM 0003
07FF
DM 0004
F800
Ladder Symbol
PID(––)
IW
P1
OW
This instruction is available in the CPM2A/CPM2C and SRM1(-V2) only.
DM 6144 to DM 6655 cannot be used for P1 or OW.
P1 to P1+32 must be in the same data area.
A total of 33 continuous words starting with P1 must be provided for PID(––) to
operate correctly. Also, PID(––) may not operate dependably in any of the fol-
lowing 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.
Address
Instruction
00000
LD
00001
CLC(41)
00002
LD
00101
STC(40)
00004
LD
00005
SCL3(––)
LR
DM
DM
CY=0
LR 02
0100
LR 02
DM 0100
00CD
DM 0100
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
Section
7-18
Operands
25313
00101
00100
02
0000
0100
CY=1
1035
F800

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents