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

The text of a manual · part 49 of 68

Programmable Controllers C200HX-CPU-ZE, C200HG-CPU-ZE, C200HE-CPU-ZE Operation Manual: SECTION 7 Program Monitoring and Execution, pages 441 to 449

Pages 441 to 449 of 613, from Programmable Controllers C200HX-CPU-ZE, C200HG-CPU-ZE, C200HE-CPU-ZE Operation Manual

The original document is the PDF (3.8 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.

Filed in the catalog under the Omron C200H-SP001 and Omron C200HW-PA204

Page 441

SECTION 7 Program Monitoring and Execution This section provides the procedures for monitoring and controlling the PC through a Programming Console. Refer to the SYSMAC-CPT Support Software Operation Manual for procedures if you are using a computer running the support software. 7-1 7-2

Monitoring Operation and Modifying Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Programming Console Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2-1 Bit/Word Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2-2 Forced Set/Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2-3 Forced Set/Reset Cancel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2-4 Hexadecimal/BCD Data Modification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2-5 Hex/ASCII Display Change . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2-6 4-digit Hex/Decimal Display Change . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2-7 8-digit Hex/Decimal Display Change . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2-8 Differentiation Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2-9 3-word Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2-10 3-word Data Modification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2-11 Binary Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2-12 Binary Data Modification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2-13 Changing Timer/Counter SV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2-14 Expansion Instruction Function Code Assignments . . . . . . . . . . . . . . . . . . . . . . . 7-2-15 UM Area Allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2-16 Reading and Setting the Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2-17 Expansion Keyboard Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2-18 Keyboard Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

432 432 432 435 437 438 440 441 442 443 444 444 445 447 448 451 451 452 453 454

431

Page 442

Programming Console Operations

7-1

Section

7-2

Monitoring Operation and Modifying Data The simplest form of operation monitoring is to display the address whose operand bit status is to be monitored using the Program Read or one of the search operations. As long as the operation is performed in RUN or MONITOR mode, the status of any bit displayed will be indicated. This section provides other procedures for monitoring data as well as procedures for modifying data that already exists in a data area. Data that can be modified includes the PV (present value) and SV (set value) for any timer or counter. All monitor operations in this section can be performed in RUN, MONITOR, or PROGRAM mode and can be cancelled by pressing CLR. All data modification operations except for timer/counter SV changes are performed after first performing one of the monitor operations. Data modification is possible in either MONITOR or PROGRAM mode, but cannot be performed in RUN mode.

7-2 7-2-1

Programming Console Operations Bit/Word Monitor The status of any bit or word in any data area can be monitored using the following operation. Although the operation is possible in any mode, ON/OFF status displays will be provided for bits in MONITOR or RUN mode only. The Bit/Digit Monitor operation can be entered either from a cleared display by designating the first bit or word to be monitored or it can be entered from any address in the program by displaying the bit or word address whose status is to be monitored and pressing MONTR. When a bit is monitored, it’s ON/OFF status will be displayed (in MONITOR or RUN mode); when a word address is designated other than a timer or counter, the digit contents of the word will be displayed; and when a timer or counter number is designated, the PV of the timer will be displayed and a small box will appear if the completion flag of a timer or counter is ON. When multiple words are monitored, a caret will appear under the leftmost digit of the address designation to help distinguish between different addresses. The status of TR bits and SR flags (e.g., the arithmetic flags), cleared when END(001) is executed, cannot be monitored. Up to six memory addresses, either bits, words, or a combination of both, can be monitored at once, although only three of these are displayed at any one time. To monitor more than one address, return to the start of the procedure and continue designating addresses. Monitoring of all designated addresses will be maintained unless more than six addresses are designated. If more than six addresses are designated, the leftmost address of those being monitored will be cancelled. To display addresses that are being monitored but are not presently on the Programming Console display, press MONTR without designating another address. The addresses being monitored will be shifted to the right. As MONTR is pressed, the addresses being monitored will continue shifting to the right until the rightmost address is shifted back onto the display from the left. During a monitor operation the up and down keys can be pressed to increment and decrement the leftmost address on the display and CLR can be pressed to cancel monitoring the leftmost address on the display. If the last address is cancelled, the monitor operation will be cancelled. The monitor operation can also be cancelled regardless of the number of addresses being monitored by pressing SHIFT and then CLR.

432

Page 443

Section

Programming Console Operations

7-2

LD and OUT can be used only to designate the first address to be displayed; they cannot be used when an address is already being monitored. Key Sequence

Clears leftmost address Cancels monitor operation

(EM area)

(EM bank 0, 1, or 2.)

Examples

The following examples show various applications of this monitor operation.

Program Read then Monitor 00100 00100READ TIM

000

T000 1234 T001 o0000 Indicates Completion flag is ON

00100 TIM

001

Monitor operation is cancelled

433

Page 444

Section

Programming Console Operations

7-2

Bit Monitor

00000 00000 LD

00001

00001 ^ ON 00000 CONT

00001

Note The status of TR bits SR flags SR 25503 to 25507 (e.g., the arithmetic flags), cleared when END(001) is executed, cannot be monitored. Word Monitor

00000 00000 CHANNEL 00000 CHANNEL

000 LR

01 cL01 FFFF cL00 0000

EM Area Word Monitor

00000 00000 CHANNEL e0-0000

00000 CHANNEL e1-0100 e0100 10000

434

Specify the EM bank and address to be monitored. The specified EM word and its contents are displayed.

Page 445

Section

Programming Console Operations

7-2

Multiple Address Monitoring 00000 00000 TIM

000

T000 0100 00000 T000 0100 00001 T000 0100 00001 T000 OFF 0100 D000000001 T000 ^OFF 0100 D000000001 T000 10FF^ OFF 0100 T000D000000001 0100 10FF^ OFF D000000001 10FF^ OFF

Cancels monitoring of leftmost address

00001 ^ OFF 00000 CONT 00000 CHANNEL

00001 DM 0000

Monitor operation is cancelled

0000000001 S ONR OFF Indicates Force Reset in operation. Indicates Force Set in operation.

7-2-2

Forced Set/Reset When the Bit/Digit Monitor operation is being performed and a bit, timer, or counter address is leftmost on the display, PLAY/SET can be pressed to turn ON the bit, start the timer, or increment the counter and REC/RESET can be pressed to turn OFF the bit or reset the timer or counter. Timers will not operate in PROGRAM mode. SR bits cannot be turned ON and OFF with this operation.

435

Page 446

Section

Programming Console Operations

7-2

Bit status will remain ON or OFF only as long as the key is held down; the original status will return as soon as the key is released. If a timer is started, the completion flag for it will be turned ON when SV has been reached. SHIFT and PLAY/SET or SHIFT and REC/RESET can be pressed to maintain the status of the bit after the key is released. The bit will not return to its original status until the NOT key is pressed, or one of the following conditions is met. 1, 2, 3...

1. The Force Status Clear operation is performed. 2. The PC mode is changed. (See note.) 3. Operation stops due to a fatal error or power interruption. 4. The I/O Table Registration operation is performed. This operation can be used in MONITOR mode to check wiring of outputs from the PC prior to actual program execution. This operation cannot be used in RUN mode.

Note The forced set/reset bit status will be maintained when switching from PROGRAM to MONITOR mode if the Force Status Hold Bit is ON and DM 6601 of the PC Setup has been set maintain the bit’s status. Refer to 3-6-5 PC Setup for details. Key Sequence

Example

The following example shows how either bits or timers can be controlled with the Force Set/Reset operation. The displays shown below are for the following program section. 00100 TIM 000 #0123 TIM 000 00500

Address

Instruction

Data

00200

LD

00100

00201

TIM

000 #0123

436

00202

LD

TIM 000

00203

OUT

00500

012.3 s

Page 447

Section

Programming Console Operations

7-2

The following displays show what happens when TIM 000 is set with 00100 OFF (i.e., 00500 is turned ON) and what happens when TIM 000 is reset with 00100 ON (i.e., timer starts operation, turning OFF 00500, which is turned back ON when the timer has finished counting down the SV). (This example is performed in MONITOR mode.)

0010000500 ^ OFF^ OFF

Monitoring 00100 and 00500.

0010000500 ~ ON^ OFF

Force set bit status.

Indicates that force set/reset is in progress.

0010000500 ~ OFF^ OFF

Reset the force-set bit.

T0000010000500 ^ OFF^ OFF T0000010000500 0123^ OFF^ OFF

Monitoring TIM 000.

T0000010000500 ~0000^ OFF^ ON

Force setting TIM 000 turns ON 00500.

T0000010000500 0123^ OFF^ OFF T0000010000500 o0000^ ON^ ON T0000010000500 ~0123^ ON^ OFF T0000010000500 0122^ ON^ OFF T0000010000500 o0000^ ON^ ON

TIM 000 returns to its original status when PLAY/SET is released.

Display with 0010 originally ON.

Timer starts timing, turning 00500 OFF.*

When the time is up, 00500 goes ON again.

Indicates that the time is up. *Timing not done in PROGRAM mode.

7-2-3

Forced Set/Reset Cancel This operation restores the status of all bits in the I/O, IR, TIM, CNT, HR, AR, or LR areas which have been force set or reset. It can be performed in PROGRAM or MONITOR mode.

Key Sequence

When the PLAY/SET and REC/RESET keys are pressed, a beeper will sound. If you mistakenly press the wrong key, then press CLR and start again from the beginning.

437

Page 448

Section

Programming Console Operations Example

7-2

The following example shows the displays that appear when Restore Status is carried out normally. 00000 00000 00000FORCE RELE? 00000FORCE RELE END

7-2-4

Hexadecimal/BCD Data Modification When the Bit/Digit Monitor operation is being performed and a BCD or hexadecimal value is leftmost on the display, CHG can be input to change the value. SR words cannot be changed. If a timer or counter is leftmost on the display, the PV will be displayed and will be the value changed. See 7-2-13 Changing Timer/Counter SV for the procedure to change SV. PV can be changed in MONITOR mode only when the timer or counter is operating. To change contents of the leftmost word address, press CHG, input the desired value, and press WRITE

Key Sequence Word currently monitored on left of display.

438

[ Data ]

Page 449

Section

Programming Console Operations Example

7-2

The following example shows the effects of changing the PV of a timer. This example is in MONITOR mode

00000 00000 TIM

000

Monitor status of timer PV that will be changed.

T000 0122 Timing

PRES VAL? T000 0119 ????

PV decrementing

Timing

PRES VAL? T000 0100 0200 Timing

T000 0199

PV changed. Timer/counter PVs can be changed even when the timer/counter is operating. Timing

439