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

The text of a manual · part 19 of 27

SYSMAC C20P/C28P/C40P/C60P P-type Programmable Controllers Operation Manual: SECTION 7, pages 152 to 159

Pages 152 to 159 of 211, from SYSMAC C20P/C28P/C40P/C60P P-type Programmable Controllers Operation Manual

The original document is the PDF (2.2 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 C28P

Page 152

Monitoring Operation and Modifying Data

7–8–1

Section 7–7

Bit/Digit 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 only in MONITOR or RUN mode. 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 timer or counter’s completion flag is ON. The status of TR bits and SR flags cleared when END(01) is executed (e.g., the arithmetic flags) 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. 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.

145

Page 153

Monitoring Operation and Modifying Data

Section 7–7

Key Sequence

Examples

The following examples show various applications of this monitor operation.

Program Read then Monitor

Indicates the Completion flag is ON

146

Page 154 read from a scan by OCR; it may hold reading errors

Monitoring Operation and Modifying Data Section 7-7

Bit Monitor

LD HF MONTR

Word Monitor

MONTR

147

Page 155

Monitoring Operation and Modifying Data

Section 7–7

Multiple Address Monitoring

7–8–2

Force 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.

148

Page 156

Section 7–7

Monitoring Operation and Modifying Data

Bit status will remain ON or OFF for only one scan after pressing the key; it will then return to its original status. When timers or counters are reset in MONITOR mode, they will start after one scan. 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. 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.

0002

TIM 00 0003

TIM 00

0501

0501

Address

Instruction

Data

0200

LD

0002

0201

TIM

00 #

0123

TIM

00

0202

LD

0203

OR

0501

0204

AND NOT

0003

0205

OUT

0501

The following displays show what happens when TIM 00 is set with 0100 OFF (i.e., 0500 is turned ON) and what happens when TIM 00 is reset with 0100 ON (i.e., timer starts operation, turning OFF 0500, which is turned back ON when the timer has finished counting down the SV).

149

Page 157

Monitoring Operation and Modifying Data

Section 7–7

Returns to the original condition after a scan Indicates that the time is up

The timer commences after the first scan

OUT 0501 is ON after the timer has reached its SV

150

Page 158

Section 7–7

Monitoring Operation and Modifying Data

7–8–3

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–8–4 Changing Timer/Counter SV for the procedure to change SV. PV can be changed in MONITOR mode and 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

Example

The following example shows the effects of changing the PV of a timer.

PV changed

7–8–4

Changing Timer/Counter SV The SV of a timer or counter can be changed by inputting a new value numerically when in MONITOR mode. The SV can be changed while the program is being executed. To change the SV, first display the address of the timer or counter whose SV is to be changed, press the down key, and then press CHG. The new value can then be input numerically and WRITE pressed to change the SV.

151

Page 159

Monitoring Operation and Modifying Data

Section 7–7

When changing the SV of timers or counters while operation is stopped, use PROGRAM mode and follow the procedure outlined in 7–5–2 Inputting or Overwriting Programs. This operation can be used to change a SV from designation as a constant to a word address designation and visa verse. Key Sequence

Example

Inputting New SV

152

The following example shows inputting a new constant and changing from a constant to a word designation.