!
7-18
Section
Data Control Instructions
426
Example
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)
00100
Address
Instruction
Operands
00000
LD
25313
00001
CLC(41)
00002
LD
00101
00101
STC(40)
00004
LD
00100
00005
SCL3(––)
LR
02
DM
0000
DM
0100
25313
(Always ON)
00101
@SCL3(––)
DM 0000
LR 02
DM 0100
DM 0000
0005
DM 0001
0003
DM 0002
0006
DM 0003
07FF
DM 0004
F800
LR 02
0100
DM 0100
00CD
0005
3
6
CY=0
BCD
Signed hex.
LR 02
1035
DM 0100
F800
CY=1
7-18-4
PID CONTROL – PID(––)
IW:
Input data word
IR, SR, AR, DM, HR, LR
Ladder Symbol
Operand Data Areas
OW
: Output data word
IR, SR, AR, DM, HR, LR
P1:
First parameter word
IR, SR, DM, HR, LR
PID(––)
IW
P1
OW
Limitations
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.
Caution
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.
Содержание SRM1 - PROGRAMING 02-2001
Страница 1: ...Programmable Controllers Cat No W353 E1 06 SYSMAC CPM1 CPM1A CPM2A CPM2C SRM1 V2 PROGRAMMING MANUAL ...
Страница 2: ...CPM1 CPM1A CPM2A CPM2C SRM1 V2 Programmable Controllers Programming Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 9: ...x ...
Страница 15: ...xvi ...