D0000D0001 4142 3031

Programming Example

Section 4-4

 

 

 

1, 2, 3... 1. Monitor the status of the desired word(s) according to the procedure described in 4-3-11 Bit, Digit, Word Monitor. While the multiple addresses are being monitored, the leftmost word is subject to change.

(Multiple address monitor)

2.Press the TR Key to switch to ASCII display. The display will toggle between hexadecimal and ASCII displays each time the TR Key is pressed.

D0000 D0001

TR

"AB" 3031

D0000D0001

TR

4142 3031

Note 1. A message contained in three words can be displayed by using ASCII dis- play in combination with the 3-word monitor operation.

2.The Hexadecimal, BCD Data Modification Operation can be used while dis- playing ASCII data. Input values in 4-digit hexadecimal.

4-3-26 Displaying the Cycle Time

This operation is used to display the current average cycle time (scan time). It is possible only in RUN or MONITOR mode while the program is being executed.

RUN

MONITOR

PROGRAM

 

 

 

OK

OK

No

1, 2, 3... 1. Press the CLR Key to bring up the initial display. 2. Press the MONTR Key to display the cycle time.

MONTR

00000SCAN TIME 012.1MS

“MS” in the display indicates the unit “ms” for the cycle time.

There might be differences in displayed values when the MONTR Key is pressed repeatedly. These differences are caused by changing execution conditions.

4-4 Programming Example

This section demonstrates all of the steps needed to write a program with the

Programming Console.

4-4-1 Preparatory Operations

Use the following procedure when writing a program to the CPM1A for the first time.

1, 2, 3... 1. Set the Programming Console’s mode switch to PROGRAM mode and turn on the CPM1A’s power supply. The password input display will appear on the Programming Console.

MONITOR

RUN PROGRAM

<PROGRAM>

PASSWORD!

2. Enter the password by pressing the CLR and then the MONTR Key.

CLR MONTR

<PROGRAM> BZ

101

Page 113
Image 113
Omron CPM1A operation manual Programming Example, Displaying the Cycle Time, Preparatory Operations, Program Password