The text of a manual · part 56 of 60
C200HX/C200HG/C200HE Programmable Controllers Operation Manual, pages 544 to 553
Pages 544 to 553 of 586
The original document is the PDF (3.4 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Omron C200HE-CPU42-E
Page 544
Appendix B
Programming Instructions Code
Mnemonic
---
(@)RXD
RECEIVE
Receives data via a communications port.
---
(@)SBBL
---
(@)SCL
DOUBLE BINARY SUBTRACT SCALING
Subtracts an 8-digit binary value (normal or signed data) 251 from another and outputs the result to R and R+1. Performs a scaling conversion on the calculated value. 222
---
(@)SRCH
DATA SEARCH
Searches the specified range of memory for the specified data. Outputs the word address(es) of words in the range that contain the data.
318
---
(@)STUP
CHANGE RS-232C SETUP
Changes the PC Setup settings for the specified port.
337
---
(@)SUM
SUM CALCULATE
261
---
(@)TKY
TEN KEY INPUT
Computes the sum of the contents of the words in the specified range of memory. Inputs 8 digits of BCD data from a 10-key keypad.
---
(@)TXD
TRANSMIT
Sends data via a communications port.
335
---
(@)XDMR
EXPANSION DM READ
The contents of the designated number of words of the fixed expansion DM data are read and output to the destination word on the PC side.
319
---
(@)XFR2
EM BLOCK TRANSFER
---
ZCPL
DOUBLE AREA RANGE COMPARE
Moves content of several consecutive source words to 190 consecutive destination words. Words in the any valid EM bank can be specified for the source or destination. This instruction can be used to change the current bank. Compares an 8-digit value to a range defined by lower 201 and upper limits and outputs the result to the GR, EQ, and LE flags.
526
Name
Function
Page 333
350
Page 545
Appendix C Error and Arithmetic Flag Operation The following table shows the instructions that affect the N, OF, UF, ER, CY, GR, LE and EQ flags. In general, N indicates a negative result, OF indicates that the result of a 16-bit calculation is greater than 32,767 (7FFF) or the result of a 32-bit calculation is greater than 2,147,483,647 (7FFF FFFF). UF indicates that the result of a 16-bit calculation is less than –32,768 (8000) or the result of a 32-bit calculation is less than –2,147,483,648 (8000 0000). Refer to Section 5 Instruction Set for details. ER indicates that operand data is not within requirements. CY indicates arithmetic or data shift results. GR indicates that a compared value is larger than some standard, LT that it is smaller, and EQ, that it is the same. EQ also indicates a result of zero for arithmetic operations. Refer to Section 5 Instruction Set for details. Vertical arrows in the table indicate the flags that are turned ON and OFF according to the result of the instruction. Although ladder diagram instructions,TIM, and CNT are executed when ER is ON, other instructions with a vertical arrow under the ER column are not executed if ER is ON. All of the other flags in the following table will also not operate when ER is ON. Instructions not shown do not affect any of the flags in the table. Although only the non-differentiated form of each instruction is shown, differentiated instructions affect flags in exactly the same way. All 8 flags are turned OFF when END(01) is executed, so their status cannot be monitored with a Programming Console. Mnemonic TIM
25503 (ER) µ
25504 (CY) ---
25505 (GR) ---
25506 (EQ) ---
25507 (LE) ---
25404 (OF) ---
25405 (UF) ---
25402 (N) ---
Page 159
CNT
µ
---
---
---
---
---
---
---
166
END (01)
OFF
OFF
OFF
OFF
OFF
OFF
OFF
OFF
158
SFT(10)
OFF
---
---
---
---
---
---
---
171
CNTR(12)
µ
---
---
---
---
---
---
---
169
TIMH(15)
µ
---
---
---
---
---
---
---
164
WSFT(16)
µ
---
---
---
---
---
---
---
178
CMP(20)
µ
---
µ
µ
µ
---
---
---
193
MOV(21)
µ
---
---
µ
---
---
---
µ
180
MVN(22)
µ
---
---
µ
---
---
---
µ
180
BIN(23)
µ
---
---
µ
---
---
---
OFF
204
BCD(24)
µ
---
---
µ
---
---
---
---
205
ASL(25)
µ
µ
---
µ
---
---
---
µ
175
ASR(26)
µ
µ
---
µ
---
---
---
OFF
175
ROL(27)
µ
µ
---
µ
---
---
---
µ
176
ROR(28)
µ
µ
---
µ
---
---
---
µ
176
COM(29)
µ
---
---
µ
---
---
---
µ
277
ADD(30)
µ
µ
---
µ
---
---
---
---
229
SUB(31)
µ
µ
---
µ
---
---
---
---
231
MUL(32)
µ
---
---
µ
---
---
---
---
235
DIV(33)
µ
---
---
µ
---
---
---
---
236
ANDW(34)
µ
---
---
µ
---
---
---
µ
278
ORW(35)
µ
---
---
µ
---
---
---
µ
279
XORW(36)
µ
---
---
µ
---
---
---
µ
280
XNRW(37)
µ
---
---
µ
---
---
---
µ
281
INC(38)
µ
---
---
µ
---
---
---
---
228
DEC(39)
µ
---
---
µ
---
---
---
---
228
STC(40)
---
ON
---
---
---
---
---
---
229
527
Page 546
Appendix C
Error and Arithmetic Flag Operation Mnemonic CLC(41)
25503 (ER) ---
25504 (CY) ---
25505 (GR) ---
25506 (EQ) ---
25507 (LE) ---
25404 (OF) ---
25405 (UF) ---
25402 (N) ---
Page 229
MSG(46)
µ
---
---
---
---
---
---
---
307
ADB(50)
µ
µ
---
µ
---
µ
µ
µ
243
SBB(51)
µ
µ
---
µ
---
µ
µ
µ
245
MLB(52)
µ
---
---
µ
---
---
---
µ
248
DVB(53)
µ
---
---
µ
---
---
---
µ
248
ADDL(54)
µ
µ
---
µ
---
---
---
---
230
SUBL(55)
µ
µ
---
µ
---
---
---
---
233
MULL(56)
µ
---
---
µ
---
---
---
---
236
DIVL(57)
µ
---
---
µ
---
---
---
---
237
BINL(58)
µ
---
---
µ
---
---
---
OFF
205
BCDL(59)
µ
---
---
µ
---
---
---
---
206
XFER(70)
µ
---
---
---
---
---
---
---
182
BSET(71)
µ
---
---
---
---
---
---
---
181
ROOT(72)
µ
---
---
µ
---
---
---
---
241
XCHG(73)
µ
---
---
---
---
---
---
---
183
SLD(74)
µ
---
---
---
---
---
---
---
177
SRD(75)
µ
---
---
---
---
---
---
---
177
MLPX(76)
µ
---
---
---
---
---
---
---
209
DMPX(77)
µ
---
---
---
---
---
---
---
212
SDEC(78)
µ
---
---
---
---
---
---
---
215
FDIV(79)
µ
---
---
---
µ
---
---
---
238
DIST(80)
µ
---
---
---
µ
---
---
µ
183
COLL(81)
µ
---
---
---
µ
---
---
µ
185
MOVB(82)
µ
---
---
---
---
---
---
---
187
MOVD(83)
µ
---
---
---
---
---
---
---
188
SFTR(84)
µ
µ
---
---
---
---
---
---
173
TCMP(85)
µ
---
---
µ
---
---
---
---
199
ASC(86)
µ
---
---
---
---
---
---
---
218
SEND(90)
µ
---
---
---
---
---
---
---
322
SBS(91)
µ
---
---
---
---
---
---
---
285
SBN(92)
µ
µ
µ
µ
µ
µ
µ
µ
286
WDT(94)
µ
---
---
---
---
---
---
---
310
IORF(97)
µ
---
---
---
---
---
---
---
310
RECV(98)
µ
---
---
---
---
---
---
---
327
MCRO(99)
µ
---
---
---
---
---
---
---
287
Page
Expansion Instructions The default function codes are shown for the instructions that have default function codes. Mnemonic 7SEG(––)
25503 (ER) µ
25504 (CY) ---
25505 (GR) ---
25506 (EQ) ---
25507 (LE) ---
25404 (OF) ---
25405 (UF) ---
25402 (N) ---
340
ADBL(––)
µ
µ
---
µ
---
µ
µ
µ
249
APR(69)
µ
---
---
µ
---
---
---
µ
263
ASFT(17)
µ
---
---
---
---
---
---
---
178
AVG(––)
µ
---
---
---
---
---
---
---
259
BCMP(68)
µ
---
---
---
---
---
---
---
197
BCNT(67)
µ
---
---
µ
---
---
---
---
312
528
Page 547
Appendix C
Error and Arithmetic Flag Operation Mnemonic BXF2(––)
25503 (ER) µ
25504 (CY) ---
25505 (GR) ---
25506 (EQ) ---
25507 (LE) ---
25404 (OF) ---
25405 (UF) ---
25402 (N) ---
191
CMCR(––)
µ
---
---
---
---
---
---
---
357
CMPL(60)
µ
---
µ
µ
µ
---
---
---
196
COLM(64)
µ
---
---
µ
---
---
---
---
225
CPS(––)
µ
---
µ
µ
µ
---
---
---
202
CPSL(––)
µ
---
µ
µ
µ
---
---
---
203
DBS(––)
µ
---
---
µ
---
---
---
µ
255
DBSL(––)
µ
---
---
µ
---
---
---
µ
256
DSW(––)
µ
---
---
---
---
---
---
---
343
EMBC(––)
µ
---
---
---
---
---
---
---
321
FCS(––)
µ
---
---
---
---
---
---
---
312
FPD(––)
µ
µ
---
---
---
---
---
---
314
HEX(––)
µ
---
---
---
---
---
---
---
219
HKY(––)
µ
---
---
---
---
---
---
---
347
HMS(66)
µ
---
---
µ
---
---
---
---
208
IEMS(––)
µ
---
---
---
---
---
---
---
320
INT(89)
µ
---
---
---
---
---
---
---
289
IORD(––)
µ
---
---
µ
---
---
---
---
354
IOWR(––)
µ
---
---
µ
---
---
---
---
355
LINE(63)
µ
---
---
µ
---
---
---
---
224
LMSG(47)
µ
---
---
---
---
---
---
---
308
MAX(––)
µ
---
---
µ
---
---
---
µ
257
MBS(––)
µ
---
---
µ
---
---
---
µ
253
MBSL(––)
µ
---
---
µ
---
---
---
µ
254
MCMP(19)
µ
---
---
µ
---
---
---
---
192
MIN(––)
µ
---
---
µ
---
---
---
µ
258
MPRF(61)
µ
---
---
---
---
---
---
---
311
MTR(––)
µ
---
---
---
---
---
---
---
352
NEG(––)
µ
---
---
µ
---
---
µ
µ
226
NEGL(––)
µ
---
---
µ
---
---
µ
µ
227
PID(––)
µ
µ
---
---
---
---
---
---
266
PMCR(––)
µ
---
---
---
---
---
---
---
339
RXD(––)
µ
---
---
---
---
---
---
---
333
SBBL(––)
µ
µ
---
µ
---
µ
µ
µ
251
SCAN(18)
µ
---
---
---
---
---
---
---
305
SCL(––)
µ
---
---
µ
---
---
---
---
222
SEC(65)
µ
---
---
µ
---
---
---
---
207
SRCH(––)
µ
---
---
µ
---
---
---
---
318
STUP(––)
µ
---
---
---
---
---
---
---
337
SUM(––)
µ
---
---
µ
---
---
---
µ
261
TERM(48)
µ
---
---
---
---
---
---
---
309
TKY(––)
µ
---
---
---
---
---
---
---
350
TTIM(87)
µ
---
---
---
---
---
---
---
165
TXD(––)
µ
---
---
---
---
---
---
---
335
XDMR(––)
µ
---
---
---
---
---
---
---
319
XFR2(––)
µ
---
---
---
---
---
---
---
190
XFRB(62)
µ
---
---
---
---
---
---
189
ZCP(88)
µ
---
µ
µ
---
---
---
200
µ
Page
529
Page 548
Appendix C
Error and Arithmetic Flag Operation Mnemonic ZCPL(––)
530
25503 (ER) µ
25504 (CY) ---
25505 (GR) µ
25506 (EQ) µ
25507 (LE) µ
25404 (OF) ---
25405 (UF) ---
25402 (N) ---
Page 201
Page 549
Appendix D Word Assignment Recording Sheets This appendix contains sheets that can be copied by the programmer to record I/O bit allocations and terminal assignments, as well as details of work bits, data storage areas, timers, and counters.
531
Page 550
I/O Bits Programmer: Word: Bit
Program: Unit:
Field device
Date: Word:
Notes
Bit
00
00
01
01
02
02
03
03
04
04
05
05
06
06
07
07
08
08
09
09
10
10
11
11
12
12
13
13
14
14
15
15
Word: Bit
Unit: Field device
Bit
00
00
01
01
02
02
03
03
04
04
05
05
06
06
07
07
08
08
09
09
10
10
11
11
12
12
13
13
14
14
15
15
532
Field device
Word: Notes
Page: Unit: Notes
Unit: Field device
Notes
Page 551
Work Bits Programmer:
Program:
Area: Bit
Word: Usage
Date:
Notes
Bit
00
00
01
01
02
02
03
03
04
04
05
05
06
06
07
07
08
08
09
09
10
10
11
11
12
12
13
13
14
14
15
15
Area: Bit
Word: Usage
Page:
Area:
Word: Usage
Area: Notes
Bit
00
00
01
01
02
02
03
03
04
04
05
05
06
06
07
07
08
08
09
09
10
10
11
11
12
12
13
13
14
14
15
15
Notes
Word: Usage
Notes
533
Page 552
Data Storage Programmer: Word
534
Program: Contents
Notes
Date: Word
Page: Contents
Notes
Page 553
Timers and Counters Programmer: TC address
Program: T or C
Set value
Notes
Date: TC address
T or C
Page: Set value
Notes
535