![background image](http://html1.mh-extra.com/html/omron/sysmac-c200hs/sysmac-c200hs_operation-manual_742436447.webp)
Appendix B
Programming Instructions
444
Code
Page
Function
Name
Mnemonic
13
DIFU
DIFFERENTIATE UP
Turns ON the designated bit for one cycle on the rising
edge of the input signal.
131
14
DIFD
DIFFERENTIATE
DOWN
Turns ON the bit for one cycle on the trailing edge.
131
15
TIMH
HIGH-SPEED TIMER
A high-speed, ON-delay (decrementing) timer.
143
(@)16
WSFT
WORD SHIFT
Shifts data between starting and ending words in word
units, writing zeros into starting word.
157
17 to 19
For expansion instructions.
20
CMP
COMPARE
Compares the contents of two words and outputs result to
GR, EQ, and LE Flags.
170
(@)21
MOV
MOVE
Copies source data (word or constant) to destination word.
159
(@)22
MVN
MOVE NOT
Inverts source data (word or constant) and then copies it to
destination word.
159
(@)23
BIN
BCD TO BINARY
Converts four-digit, BCD data in source word into 16-bit
binary data, and outputs converted data to result word.
180
(@)24
BCD
BINARY TO BCD
Converts binary data in source word into BCD, and outputs
converted data to result word.
181
(@)25
ASL
ARITHMETIC SHIFT
LEFT
Shifts each bit in single word of data one bit to left, with CY.
154
(@)26
ASR
ARITHMETIC SHIFT
RIGHT
Shifts each bit in single word of data one bit to right, with
CY.
154
(@)27
ROL
ROTATE LEFT
Rotates bits in single word of data one bit to left, with CY.
155
(@)28
ROR
ROTATE RIGHT
Rotates bits in single word of data one bit to right, with CY.
155
(@)29
COM
COMPLEMENT
Inverts bit status of one word of data.
249
(@)30
ADD
BCD ADD
Adds two four-digit BCD values and content of CY, and
outputs result to specified result word.
205
(@)31
SUB
BCD SUBTRACT
Subtracts a four-digit BCD value and CY from another
four-digit BCD value and outputs result to the result word.
207
(@)32
MUL
BCD MULTIPLY
Multiplies two four-digit BCD values and outputs result to
specified result words.
211
(@)33
DIV
BCD DIVIDE
Divides four-digit BCD dividend by four-digit BCD divisor
and outputs result to specified result words.
212
(@)34
ANDW
LOGICAL AND
Logically ANDs two 16-bit input words and sets corre-
sponding bit in result word if corresponding bits in input
words are both ON.
250
(@)35
ORW
LOGICAL OR
Logically ORs two 16-bit input words and sets correspond-
ing bit in result word if one or both of corresponding bits in
input data are ON.
251
(@)36
XORW
EXCLUSIVE OR
Exclusively ORs two 16-bit input words and sets bit in re-
sult word when corresponding bits in input words differ in
status.
252
(@)37
XNRW
EXCLUSIVE NOR
Exclusively NORs two 16-bit input words and sets bit in
result word when corresponding bits in input words are
same in status.
253
(@)38
INC
BCD INCREMENT
Increments four-digit BCD word by one.
204
(@)39
DEC
BCD DECREMENT
Decrements four-digit BCD word by one.
204
(@)40
STC
SET CARRY
Sets carry flag (i.e., turns CY ON).
205
(@)41
CLC
CLEAR CARRY
Clears carry flag (i.e, turns CY OFF).
205
45
TRSM
TRACE MEMORY
SAMPLE
Initiates data tracing.
277
(@)46
MSG
MESSAGE
Displays a 16-character message on the Programming
Console display.
278
47 & 48
For expansion instructions.
(@)50
ADB
BINARY ADD
Adds two four-digit hexadecimal values and content of CY,
and outputs result to specified result word.
219
(@)51
SBB
BINARY SUBTRACT
Subtracts a four-digit hexadecimal value and CY from
another four-digit hexadecimal value and outputs result to
the result word.
221
Содержание SYSMAC C200HS
Страница 1: ...Cat No W235 E1 05 C200HS SYSMAC Programmable Controllers...
Страница 2: ...C200HS Programmable Controllers Operation Manual Revised February 2002...
Страница 3: ...iv...
Страница 5: ...vi...
Страница 379: ...371 SR word Corresponding key s Bit 279 03 04 05 3 06 07 VER 08 09 Monitoring Operation and Modifying Data Section 7 1...
Страница 470: ...468 Programmer Program Date Page Word Contents Notes Word Contents Notes Data Storage...
Страница 471: ...469 Programmer Program Date Page TC address T or C Set value Notes TC address T or C Set value Notes Timers and Counters...