Appendix D
Programming Instructions
75
Area
IR
SR
HR
TR
TC
DM
#
Bits/Words
0000 to 1807
1808 to 1907
HR 000 to 915
TR 0 to 7
TC 00 to 47
DM 00 to DM 63
0000 to 9999
or 0000 to FFFF
Name
Mnemonic
Operands
Function
Symbol
BCD
Subtract
SUB(31)
SUB(31)
Mi
Su
R
Subtracts both four–digit BCD subtra-
hend (Su) and content of CY from
four–digit BCD minuend (Mi) and out-
puts result to specified result word (R).
CY CY
Mi – Su
R
Mi/Su:
IR
SR
HR
TC
DM
#
R:
IR
HR
DM
BCD Multiply
MUL(32)
MUL(32)
Md
Mr
R
Multiplies a words data or a four–digit
BCD value(Md) and another words
data (Mr) and outputs the result to a
specified result word (R).
Md X Mr
R
R + 1
Md/Mr:
IR
SR
HR
TC
DM
#
R:
IR
HR
DM
BCD Divide
DIV(33)
DIV(33)
Dd
Dr
R
Divides a words data or a four–digit
BCD dividend (Dd) and another words
data (Dr) and outputs result to speci-
fied result word (R).
R
R + 1
Dd/Dr:
IR
SR
HR
TC
DM
#
R:
IR
HR
DM
Set Carry
STC(40)
STC(40)
Sets carry flag (i.e., turns CY ON).
None
Clear Carry
CLC(41)
CLC(41)
CLC clears carry flag (i.e, turns CY
OFF).
None
Reversible
Drum Count-
er
RDM(60)
RDM(60)
D
High–speed UP–DOWN counter oper-
ation.
D:
IR
HR
DM
High–speed
Drum
Counter
HDM(61)
HDM(61)
D
A 2–kHz counter with both software
and hardware resets.
D:
IR
HR
DM
End Wait
ENDW(62)
ENDW(62)
N
Used to force a cycle time longer than
normal causing the CPU to wait.
N:
IR
HR
TC
DM
#
Network
Identifier
NETW(63)
NETW(63)
#
Used to leave comments in the pro-
gram.
#
Summary of Contents for SYSMAC C20K
Page 1: ...Cat No W147 E1 02B ...
Page 2: ...K type Programmable Controllers Installation Guide Revised August 1993 C20P C60K C60K C20P ...
Page 3: ...iv ...
Page 5: ...vi ...
Page 8: ...x ...
Page 87: ......