Omron C200H Operation Manual page 310

Hide thumbs Also See for C200H:
Table of Contents

Advertisement

Programming Instructions
Name
Mnemonic
WORD-TO-COLUMN
(@)WTC(64)
(CPU11-E)
HOURS-TO-SECONDS
(@)HTS(65)
(CPU11-E)
SECONDS-TO-HOURS
(@)STH(66)
(CPU11-E)
BIT COUNTER
(@)BCNT(67)
Data Areas
These footnote tables show the actual ranges of all data areas. Bit numbers are provided (except for DM and TC areas); remove the rightmost two digits for word numbers.
IR
SR
00000 to 23515 23600 to 25507
HR 0000 to 9915
302
Symbol
Places bit data from the source word (S),
consecutively into the same numbered
WTC(64)
bits of the 16 consecutive destination
words (where D is the address of the first
S
destination word).
D
Bit 00 from word S is placed into bit C of
C
word D, bit 01 from word S is placed into
bit C of word D+1, etc.
00
01
15
Converts a time given in hours/minutes/
seconds (S and S+1) to an equivalent time
HTS(65)
in seconds only (R and R+1). S and S+1
S
must be BCD and within one data area. R
R
and R+1 must also be within one data
–––
area.
Converts a time given in seconds (S and
S+1) to an equivalent time in hours/minu-
STH(66)
tes/seconds (R and R+1). S and S+1 must
S
be BCD between 0 and 35,999,999, and
R
within the same data area. R and R+1
–––
must also be within one data area.
Counts the number of ON bits in one or
more words (SB is the beginning source
BCNT(67)
word) and outputs the result to the speci-
N
fied result word (R). N gives the number of
SB
words to be counted. All words in which bit
R
are to be counted must be in the same data
area.
HR
TR
AR
TR 0 to 7
AR 0000 to 2715
Function
S
Bit C
1
1
1
1
0
0
LR
TC
LR 0000 to 6315
TC 000 to 511
Read/Wr: DM 0000 to DM 0999
Rd only: DM 1000 to DM 1999
Appendix B
Operand Data Areas
S:
D:
C:
IR
IR
IR
SR
SR
SR
HR
HR
HR
AR
AR
AR
LR
LR
LR
TC
TC
TC
DM
DM
DM
#
D
D+1
D+15
S:
R:
–––:
IR
IR
Not
SR
SR
used.
HR
HR
AR
AR
LR
LR
TC
TC
DM
DM
S:
R:
–––:
IR
IR
Not
SR
SR
used.
HR
HR
AR
AR
LR
LR
TC
TC
DM
DM
N:
R:
SB:
IR
IR
IR
SR
HR
SR
HR
AR
HR
AR
LR
AR
LR
TC
LR
TC
DM
TC
DM
DM
DM
#
0000 to 9999
or 0000 to FFFF

Advertisement

Table of Contents
loading

Table of Contents