Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 7 of 60

C200HX/C200HG/C200HE Programmable Controllers Operation Manual, pages 54 to 63

Pages 54 to 63 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 54

Section 3-4

SR (Special Relay) Area Word(s) 270

Bit(s) 00

Save UM to Cassette Bit

01

Load UM from Cassette Bit

02 03

Compare UM to Cassette Bit Comparison Results 0: Contents identical; 1: Contents differ or comparison not possible Reserved by system (not accessible by user) Transfer Error Flag: Transferring Data will not be transferred from UM to the Memory SYSMAC NET data link table on UM Cassette if an error occurs (except for Board during active data link. Checksum Error). Detailed information on checksum errors occurring in the Memory Cassette will not be Transfer Error Flag: Not PROGRAM output to SR 272 because the information is not mode needed. Repeat the transmission if SR 27015 is ON. Transfer Error Flag: Read Only Transfer Error Flag: Insufficient Capacity or No UM Transfer Error Flag: Board Checksum Error Ladder program size stored in Memory Cassette

04 to 10 11

12 13 14 15 271

00 to 07

Function Data transferred when the Bit is turned ON in PROGRAM mode. Bit will automatically turn OFF. A non-fatal error will occur if these bits are turned ON in RUN or MONITOR modes.

Ladder-only File: 04: 4 KW; 08: 8 KW; 12: 12 KW; ... (32: 32 KW) 00: No ladder program or a file other than a ladder program has been stored. 272

273

08 to 15 00 to 10 11 12 13 14 15 00 01 02 03 to 07 08 to 11 12 13 14 15

36

Ladder program size and type in CPU Unit (Specifications are the same as for bits 00 to 07.) Reserved by system (not accessible by user) Memory Error Flag: PC Setup Checksum Error Memory Error Flag: Ladder Checksum Error Memory Error Flag: Instruction Change Vector Area Checksum Error Memory Error Flag: Memory Cassette Online Disconnection Memory Error Flag: Autoboot Error Save IOM to Cassette Bit Data transferred to Memory Cassette when Bit is turned ON in PROGRAM mode. Bit will automatically turn OFF. An error will be produced if turned ON in Load IOM from Cassette Bit any other mode. Set this bit to 0. Reserved by system (not accessible by user) Contains the EM bank number when the Memory Cassette contains IOM data. Transfer Error Flag: Not PROGRAM Data will not be transferred from IOM to the Memory mode Cassette if an error occurs (except for Read Only Error). Transfer Error Flag: Read Only Transfer Error Flag: Insufficient Capacity or No IOM Always 0.

Page 55

Section 3-4

SR (Special Relay) Area Word(s) 274

Bit(s) 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15

Function These flags will turn ON during restart processing. These flags will not turn ON for Units on Slave Racks.

Special I/O Unit #0 Restart Flag Special I/O Unit #1 Restart Flag Special I/O Unit #2 Restart Flag Special I/O Unit #3 Restart Flag Special I/O Unit #4 Restart Flag Special I/O Unit #5 Restart Flag Special I/O Unit #6 Restart Flag Special I/O Unit #7 Restart Flag Special I/O Unit #8 Restart Flag Special I/O Unit #9 Restart Flag Special I/O Unit #A Restart Flag Special I/O Unit #B Restart Flag Special I/O Unit #C Restart Flag Special I/O Unit #D Restart Flag Special I/O Unit #E Restart Flag Special I/O Unit #F Restart Flag

275

00 01 02 03 04 05 06 to 07 08 to 15

PC Setup Error (DM 6600 to DM 6605) PC Setup Error (DM 6613 to DM 6623) PC Setup Error (DM 6645 to DM 6655) Reserved by system (not accessible by user) Changing RS-232C Setup Flag Reserved by system (not accessible by user) Reserved by system (not accessible by user) Reserved by system (not accessible by user)

276

00 to 07 08 to 15

Minutes (00 to 59) Hours (00 to 23)

277 to 279

00 to 15

Used for keyboard mapping. See page 416.

280

00 to 15

Group-2 High-density I/O Unit Error Flags for Units 0 to F (AR 0205 to AR 0214 also function as Error Flags for Units 0 to 9.)

281

00 to 15

Special I/O Unit Restart Bits for Units 0 to F (Units 0 to 9 can also be restarted with Special I/O Unit Restart Bits AR 0100 to AR 0109.)

Indicates the current time in BCD.

• To restart a Special I/O Unit, either use for force-set/reset operation to turn the Restart Bit ON and OFF, or turn OFF the power and then turn it ON again. • Follow the same procedure as above for starting PC Link Units. 282

00 to 15

Special I/O Unit Error Flags for Units 0 to F (AR 0000 to AR 0009 also function as Error Flags for Units 0 to 9.)

283 to 286

00 to 15

Communications Board monitoring area

287 to 288

00 to 15

Communications Board interrupt data area

289

00 to 07 08 09 to 10 11 12 13 to 14 15

Communications Board general monitoring area Communications Board Port A Instruction Execution Flag Used by Communications Board Port A instructions Communications Board Port A Instruction Abort Bit Communications Board Port B Instruction Execution Flag Used by Communications Board Port B instructions Communications Board Port B Instruction Abort Bit

290 to 293

00 to 15

Macro Area inputs.

294 to 297

00 to 15

Macro Area outputs.

298 to 299

00 to 15

Reserved by system (not accessible by user)

37

Page 56

Section 3-4

SR (Special Relay) Area

3-4-1 SYSMAC NET/SYSMAC LINK System Loop Status

SR 236 provides the local node loop status for SYSMAC NET Systems, as shown below.

---

Bit in SR 236

Level 0

07

06

05

04

03

02

01

00

Level 1

15

14

13

12

11

10

09

08

Status/ Meaning

1

1

Central Power Supply

1

Completion Codes

0: Connected 1: Not connected

Loop Status

Reception Status

11: Normal loop 10: Downstream backloop 01: Upstream backloop 00: Loop error

0: Reception enabled 1: Reception disabled

1

SR 23700 to SR23707 provide the SEND/RECV completion code for operating level 0 and SR 23708 to SR 23215 provide the SEND/RECV completion code for operating level 1. The completion codes are as given in the following tables. SYSMAC LINK Code

Item

Meaning

00

Normal end

Processing ended normally.

01

Parameter error

02

Unable to send

03 04

Destination not in network Busy error

Parameters for network communication instruction is not within acceptable ranges. Unit reset during command processing or local node in not in network. Destination node is not in network.

05

Response timeout

06

Response error

07 08

Communications controller error Setting error

09

PC error

The destination node is processing data and cannot receive the command. The response monitoring time was exceeded. There was an error in the response received from the destination node. An error occurred in the communications controller. There is an error in the node address settings. An error occurred in the CPU Unit of the destination node.

SYSMAC NET Code

38

Item

Meaning

00

Normal end

Processing ended normally.

01

Parameter error

02

Routing error

03

Busy error

04 05

Send error (token lost) Loop error

Parameters for network communication instruction is not within acceptable ranges. There is a mistake in the routing tables for connection to a remote network. The destination node is processing data and cannot receive the command. The token was not received from the Line Server.

06

No response

07

Response error

An error occurred in the communications loop. The destination node does not exist or the response monitoring time was exceeded. There is an error in the response format.

Page 57

Section 3-4

SR (Special Relay) Area Data Link Status Flags

SR 238 to SR 245 contain the data link status for SYSMAC LINK/SYSMAC NET Systems. The data structure depends on the system used to create the data link. SYSMAC LINK Bit

Operating level 0

Operating level 1

SR 238

SR 242

12 to 15 Node 4

11 to 08 Node 3

04 to 07 Node 2

00 to 03 Node 1

SR 239

SR 243

Node 8

Node 7

Node 6

Node 5

SR 240

SR 244

Node 12

Node 11

Node 10

Node 9

SR 241

SR 245

Node 16

Node 15

Node 14

Node 13

Leftmost bit 1: Data link operating

Rightmost bit 1: Communications error

1: PC CPU Unit error

1: PC RUN status

SYSMAC NET Operating level 0

Operating level 1

SR 238 SR 239 SR 240 SR 241

Bit (Node numbers below)

SR 242

15 8

14 7

13 6

12 5

11 4

10 3

09 2

08 1

07 8

06 7

05 6

04 5

03 4

02 3

01 2

00 1

SR 243

16

15

14

13

12

11

10

9

16

15

14

13

12

11

10

9

SR 244

24

23

22

21

20

19

18

17

24

23

22

21

20

19

18

17

SR 245

32

31

30

29

28

27

26

25

32

31

30

29

28

27

26

25

1: PC CPU Unit error

1: PC RUN status

3-4-2 Remote I/O Systems SR 25312 turns ON to indicate an error has occurred in Remote I/O Systems. The ALM/ERR indicator will flash, but PC operation will continue. SR 251 contains information on the source and type of error and AR 0014 and AR 0015 contain information on the SYSMAC LINK status. The function of each bit is described below. Refer to Optical and Wired Remote I/O System Manuals for details. SR 25100 – Error Check Bit

If there are errors in more than one Remote I/O Unit, word SR 251 will contain error information for only the first one. Data for the remaining Units will be stored in memory and can be accessed by turning the Error Check bit ON and OFF. Be sure to record data for the first error, which will be cleared when data for the next error is displayed.

SR 25101 and SR 25102

Not used.

SR 25103

Remote I/O Error Flag: Bit 03 turns ON when an error has occurred in a Remote I/O Unit.

SR 25104 through SR 25115

The content of bits 04 to 06 is a 3-digit binary number (04: 20, 05: 21, 06: 22) and the content of bits 08 to 15 is a 2-digit hexadecimal number (08 to 11: 160, 12 to 15: 161). If the content of bits 12 through 15 is B, an error has occurred in a Remote I/O Master or Slave Unit, and the content of bits 08 through 11 will indicate the unit number, either 0 or 1, of the Master involved. In this case, bits 04 to 06 contain the unit number of the Slave Rack involved. If the content of bits 12 through 15 is a number from 0 to 31, an error has occurred in an Optical I/O Unit or I/O Terminal. The number is the unit number of the Optical I/O Unit or I/O Terminal involved, and bit 04 will be ON if the Unit is assigned leftmost word bits (08 through 15), and OFF if it is assigned rightmost word bits (00 through 07).

39

Page 58

Section 3-4

SR (Special Relay) Area

3-4-3 Link System Flags and Control Bits Use of the following SR bits depends on the configuration of any Link Systems to which your PC belongs. These flags and control bits are used when Link Units, such as PC Link Units, Remote I/O Units, or Host Link Units, are mounted to the PC Racks or to the CPU Unit. For additional information, consult the System Manual for the particular Units involved. The following bits can be employed as work bits when the PC does not belong to the Link System associated with them.

Host Link Systems Both Error flags and Restart bits are provided for Host Link Systems. Error flags turn ON to indicate errors in Host Link Units. Restart bits are turned ON and then OFF to restart a Host Link Unit. SR bits used with Host Link Systems are summarized in the following table. Rack-mounting Host Link Unit Restart bits are not effective for the Multilevel Rack-mounting Host Link Units. Refer to the Host Link System Manual for details. Bit

Flag

25206

Rack-mounting Host Link Unit Level 1 Error Flag

25207

Rack-mounting Host Link Unit Level 1 Restart Bit

25213

Rack-mounting Host Link Unit Level 0 Restart Bit

25311

Rack-mounting Host Link Unit Level 0 Error Flag

PC Link Systems PC Link Unit Error and Run Flags

Single-level PC Link Systems

When the PC belongs to a PC Link System, words 247 through 250 are used to monitor the operating status of all PC Link Units connected to the PC Link System. This includes a maximum of 32 PC Link Units. If the PC is in a Multilevel PC Link System, half of the PC Link Units will be in a PC Link Subsystem in operating level 0; the other half, in a Subsystem in operating level 1. The actual bit assignments depend on whether the PC is in a Single-level PC Link System or a Multilevel PC Link System. Refer to the PC Link System Manual for details. Error and Run Flag bit assignments are described below. Bits 00 through 07 of each word are the Run flags, which are ON when the PC Link Unit is in RUN mode. Bits 08 through 15 are the Error flags, which are ON when an error has occurred in the PC Link Unit. The following table shows bit assignments for Single-level and Multi-level PC Link Systems. Flag type Run flags

Error flags

40

Bit no.

SR 247

SR 248

SR 249

SR 250

00

Unit #24

Unit #16

Unit #8

Unit #0

01

Unit #25

Unit #17

Unit #9

Unit #1

02

Unit #26

Unit #18

Unit #10

Unit #2

03

Unit #27

Unit #19

Unit #11

Unit #3

04

Unit #28

Unit #20

Unit #12

Unit #4

05

Unit #29

Unit #21

Unit #13

Unit #5

06

Unit #30

Unit #22

Unit #14

Unit #6

07

Unit #31

Unit #23

Unit #15

Unit #7

08

Unit #24

Unit #16

Unit #8

Unit #0

09

Unit #25

Unit #17

Unit #9

Unit #1

10

Unit #26

Unit #18

Unit #10

Unit #2

11

Unit #27

Unit #19

Unit #11

Unit #3

12

Unit #28

Unit #20

Unit #12

Unit #4

13

Unit #29

Unit #21

Unit #13

Unit #5

14

Unit #30

Unit #22

Unit #14

Unit #6

15

Unit #31

Unit #23

Unit #15

Unit #7

Page 59

Section 3-4

SR (Special Relay) Area Multilevel PC Link Systems

Flag type Run flags

Bit no. 00

02 03 04 05 06 07 08 09 10 11 12 13 14 15

Application Example

SR 248

Unit #8, level 1 Unit #9, level 1 Unit #10, level 1 Unit #11, level 1 Unit #12, level 1 Unit #13, level 1 Unit #14, level 1 Unit #15, level 1 Unit #8, level 1 Unit #9, level 1 Unit #10, level 1 Unit #11, level 1 Unit #12, level 1 Unit #13, level 1 Unit #14, level 1 Unit #15, level 1

01

Error flags

SR 247

Unit #0, level 1 Unit #1, level 1 Unit #2, level 1 Unit #3, level 1 Unit #4, level 1 Unit #5, level 1 Unit #6, level 1 Unit #7, level 1 Unit #0, level 1 Unit #1, level 1 Unit #2, level 1 Unit #3, level 1 Unit #4, level 1 Unit #5, level 1 Unit #6, level 1 Unit #7, level 1

SR 249 Unit #8, level 0 Unit #9, level 0 Unit #10, level 0 Unit #11, level 0 Unit #12, level 0 Unit #13, level 0 Unit #14, level 0 Unit #15, level 0 Unit #8, level 0 Unit #9, level 0 Unit #10, level 0 Unit #11, level 0 Unit #12, level 0 Unit #13, level 0 Unit #14, level 0 Unit #15, level 0

SR 250 Unit #0, level 0 Unit #1, level 0 Unit #2, level 0 Unit #3, level 0 Unit #4, level 0 Unit #5, level 0 Unit #6, level 0 Unit #7, level 0 Unit #0, level 0 Unit #1, level 0 Unit #2, level 0 Unit #3, level 0 Unit #4, level 0 Unit #5, level 0 Unit #6, level 0 Unit #7, level 0

If the PC is in a Multilevel PC Link System and the content of word 248 is 02FF, then PC Link Units #0 through #7 of in the PC Link Subsystem assigned operating level 1 would be in RUN mode, and PC Link Unit #1 in the same Subsystem would have an error. The hexadecimal digits and corresponding binary bits of word 248 would be as shown below. Bit no.

15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 00

Binary

0000

Hex

0

0010

1111

2

F

1111 F

3-4-4 Forced Status Hold Bit SR 25211 determines whether or not the status of bits that have been force-set or force-reset is maintained when switching between PROGRAM and MONITOR mode to start or stop operation. If SR 25211 is ON, bit status will be maintained; if SR 25211 is OFF, all bits will return to default status when operation is started or stopped. The Forced Status Hold Bit is only effective when enabled in the PC Setup. The status of SR 25211 in not affected by a power interruption unless the I/O table is registered; in that case, SR 25211 will go OFF. SR 25211 is not effective when switching to RUN mode. SR 25211 should be manipulated from a Peripheral Device, e.g., a Programming Console or SSS.

41

Page 60

SR (Special Relay) Area

Section 3-4

Maintaining Status during Startup

The status of SR 25211 and thus the status of force-set and force-reset bits can be maintained when power is turned OFF and ON by enabling the Forced Status Hold Bit in the PC Setup. If the Forced Status Hold Bit is enabled, the status of SR 25211 will be preserved when power is turned OFF and ON. If this is done and SR 25211 is ON, then the status of force-set and force-reset bits will also be preserved, as shown in the following table. Status before shutdown SR 25211 ON OFF

Status at next startup SR 25211 ON OFF

Force-set/reset bits Status maintained Reset

Note Refer to 3-6-4 PC Setup for details on enabling the Forced Status Hold Bit.

3-4-5 I/O Status Hold Bit SR 25212 determines whether or not the status of IR and LR area bits is maintained when operation is started or stopped. If SR 25212 is ON, bit status will be maintained; if SR 25212 is OFF, all IR and LR area bits will be reset. The I/O Status Hold Bit is effective only if enabled in the PC Setup. The status of SR 25212 in not affected by a power interruption unless the I/O table is registered; in that case, SR 25212 will go OFF. SR 25212 should be manipulated from a Peripheral Device, e.g., a Programming Console or SSS. Maintaining Status during Startup

The status of SR 25212 and thus the status of IR and LR area bits can be maintained when power is turned OFF and ON by enabling the I/O Status Hold Bit in the PC Setup. If the I/O Status Hold Bit is enabled, the status of SR 25212 will be preserved when power is turned OFF and ON. If this is done and SR 25212 is ON, then the status of IR and LR area bits will also be preserved, as shown in the following table. Status before shutdown SR 25212 ON OFF

Status at next startup SR 25212 ON OFF

IR and LR bits Status maintained Reset

Note Refer to 3-6-4 PC Setup for details on enabling the I/O Status Hold Bit.

3-4-6 Output OFF Bit SR bit 25215 is turned ON to turn OFF all outputs from the PC. The OUT INHIBIT indicator on the front panel of the CPU Unit will light. When the Output OFF Bit is OFF, all output bits will be refreshed in the usual way. The status of the Output OFF Bit is maintained for power interruptions or when PC operation is stopped, unless the I/O table has been registered, or the I/O table has been registered and either the Forced Status Hold Bit or the I/O Status Hold Bit has not been enabled in the PC Setup.

3-4-7 FAL (Failure Alarm) Area A 2-digit BCD FAL code is output to bits 25300 to 25307 when the FAL or FALS instruction is executed. These codes are user defined for use in error diagnosis, although the PC also outputs FAL codes to these bits, such as one caused by battery voltage drop. This area can be reset by executing the FAL instruction with an operand of 00 or by performing a Failure Read Operation from the Programming Console.

3-4-8 Low Battery Flag SR bit 25308 turns ON if the voltage of the CPU Unit’s backup battery drops. The ALM/ERR indicator on the front of the CPU Unit will also flash.

42

Page 61

Section 3-4

SR (Special Relay) Area

This bit can be programmed to activate an external warning for a low battery voltage. The operation of the battery alarm can be disabled in the PC Setup if desired. Refer to 3-6-4 PC Setup for details.

3-4-9 Cycle Time Error Flag SR bit 25309 turns ON if the cycle time exceeds 100 ms. The ALM/ERR indicator on the front of the CPU Unit will also flash. Program execution will not stop, however, unless the maximum time limit set for the watchdog timer is exceeded. Timing may become inaccurate after the cycle time exceeds 100 ms.

3-4-10 I/O Verification Error Flag SR bit 25310 turns ON when the Units mounted in the system disagree with the I/O table registered in the CPU Unit. The ALM/ERR indicator on the front of the CPU Unit will also flash, but PC operation will continue. To ensure proper operation, PC operation should be stopped, Units checked, and the I/O table corrected whenever this flag goes ON.

3-4-11 First Cycle Flag SR bit 25315 turns ON when PC operation begins and then turns OFF after one cycle of the program. The First Cycle Flag is useful in initializing counter values and other operations. An example of this is provided in 5-14 Timer and Counter Instructions.

3-4-12 Clock Pulse Bits Five clock pulses are available to control program timing. Each clock pulse bit is ON for the first half of the rated pulse time, then OFF for the second half. In other words, each clock pulse has a duty factor of 50%. These clock pulse bits are often used with counter instructions to create timers. Refer to 5-14 Timer and Counter Instructions for an example of this. Pulse width

1 min

0.02 s

0.1 s

0.2 s

1.0 s

Bit

25400

25401

25500

25501

25502

Bit 25400 1-min clock pulse

30 s

30 s

Bit 25401 0.02-s clock pulse

.01 s

.01 s

1 min.

.02 s

Bit 25500 0.1-s clock pulse

Bit 25501 0.2-s clock pulse

.05 s

.05 s 0.1 s

0.5 s 1.0 s

0.1 s 0.2 s

Bit 25502 1.0-s clock pulse

0.5 s

0.1 s

Note: Because the 0.1-second and 0.02-second clock pulse bits have ON times of 50 and 10 ms, respectively, the CPU Unit may not be able to accurately read the pulses if program execution time is too long.

43

Page 62

Section 3-4

SR (Special Relay) Area

3-4-13 Step Flag SR bit 25407 turns ON for one cycle when step execution is started with the STEP(08) instruction.

3-4-14 Group-2 Error Flag SR bit 25414 turns ON for any of the following errors for Group-2 High-density I/O Units and B7A Interface Units: the same I/O number set twice, the same words allocated to more than one Unit, refresh errors. If one of these errors occurs, the Unit will stop operation and the ALARM indicator will flash, but the overall PC will continue operation. When the Group-2 Error Flag is ON, the number of the Unit with the error will be provided in AR 0205 to AR 0214. If the Unit cannot be started properly even though the I/O number is set correctly and the Unit is installed properly, a fuse may be blown or the Unit may contain a hardware failure. If this should occur, replace the Unit with a spare and try to start the system again. There is also an error flag for High-density I/O Units and B7A Interface Units in the AR area, AR 0215.

3-4-15 Special Unit Error Flag SR bit 25415 turns ON to indicate errors in the following Units: Special I/O, PC Link, Host Link, and Remote I/O Master Units. SR bit 25415 will turn ON for any of the following errors. • When more than one Special I/O Unit is set to the same unit number. • When an error occurs in refreshing data between a Special I/O Unit and the PC’s CPU Unit. • When an error occurs between a Host Link Unit and the PC’s CPU Unit. • When an error occurs in a Remote I/O Master Unit. Although the PC will continue operation if SR 25415 turns ON, the Units causing the error will stop operation and the ALM indicator will flash. Check the status of AR 0000 to AR 0015 to obtain the unit numbers of the Units for which the error occurred and investigate the cause of the error. Unit operation can be restarted by using the Restart Bits (AR 0100 to AR 0115, SR 25207, and SR 25213), but will not be effective if the same unit number is set for more than one Special I/O Unit. Turn OFF the power supply, correct the unit number settings, and turn ON the power supply again to restart. SR 25415 will not turn OFF even if AR 0100 to AR 0115 (Restart Bits) are turned ON. It can be turned OFF by reading errors from a Programming Device or by executing FAL(06) 00 from the ladder program.

3-4-16 Instruction Execution Error Flag, ER SR bit 25503 turns ON if an attempt is made to execute an instruction with incorrect operand data. Common causes of an instruction error are non-BCD operand data when BCD data is required, or an indirectly addressed DM word that is non-existent. When the ER Flag is ON, the current instruction will not be executed.

3-4-17 Arithmetic Flags The following flags are used in data shifting, arithmetic calculation, and comparison instructions. They are generally referred to only by their two-letter abbreviations. Note These flags are all reset when the END(01) instruction is executed, and therefore cannot be monitored from a programming device. Refer to 5-15 Data Shifting, 5-17 Data Comparison, 5-19 BCD Calculations, and 5-20 Binary Calculations for details.

44

Page 63

Section 3-4

SR (Special Relay) Area Negative Flag, N

SR bit 25402 turns ON when the result of a calculation is negative.

Overflow Flag, OF

SR bit 25404 turns ON when the result of a binary addition or subtraction exceeds 7FFF or 7FFFFFFF.

Underflow Flag, UF

SR bit 25405 turns ON when the result of a signed binary addition or subtraction exceeds 8000 or 80000000.

Carry Flag, CY

SR bit 25504 turns ON when there is a carry in the result of an arithmetic operation or when a rotate or shift instruction moves a “1” into CY. The content of CY is also used in some arithmetic operations, e.g., it is added or subtracted along with other operands. This flag can be set and cleared from the program using the Set Carry and Clear Carry instructions.

Greater Than Flag, GR

SR bit 25505 turns ON when the result of a comparison shows the first of two operands to be greater than the second.

Equal Flag, EQ

SR bit 25506 turns ON when the result of a comparison shows two operands to be equal or when the result of an arithmetic operation is zero.

Less Than Flag, LE

SR bit 25507 turns ON when the result of a comparison shows the first of two operands to be less than the second. Note The four arithmetic flags are turned OFF when END(01) is executed.

3-4-18 Interrupt Subroutine Areas The following areas are used in subroutine interrupt processing. Interrupt Subroutine Maximum Processing Time Area

SR bits 26200 to 26215 are used to set the maximum processing time of the interrupt subroutine. Processing times are determined to within 0.1 ms increments.

Maximum Processing Time Interrupt Subroutine Number Area

SR bits 26300 to 26315 contain the maximum processing time interrupt subroutine number. Bit 15 will be ON if there is an interruption.

3-4-19 RS-232C Port Communications Areas RS-232C Port Error Code Error code

SR bits 26400 to 26403 set when there is a RS-232C port error.

Error type

Error conditions

Valid modes

0

No error

---

All modes

1

Parity error

All modes

2

Framing error

When data received differs from positive/negative parity setting. When step bit cannot be detected.

3

Overrun error

When data is not properly received.

All modes

4

Timeout error

When a timeout occurs for two PCs linked one-to-one.

1:1 PC Link slave or 1:1 PC Link master

All modes

RS-232C Port Communication Error Bit

SR bit 26404 turns ON when there is a RS-232C port communication error.

RS-232C Port Send Ready Flag

SR bit 26405 turns ON when the PC is ready to transmit data.

RS-232C Port Reception Completed Flag

SR bit 26406 turns ON when the PC has completed reading data from a RS-232C device.

RS-232C Port Reception Overflow Flag

SR bit 26407 turns ON when data overflow occurs following the reception of data.

RS-232C Reception Counter

SR 26500 to SR 26515 contains the number of RS-232C port receptions in General I/O Mode.

45