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

The text of a manual · part 14 of 68

Programmable Controllers C200HX-CPU-ZE, C200HG-CPU-ZE, C200HE-CPU-ZE Operation Manual: SECTION 4 Writing and Inputting the Program, pages 110 to 118

Pages 110 to 118 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 110

Section

The Programming Console

4-5

The gray keys other than the SHIFT key have either the mnemonic name of the instruction or the abbreviation of the data area written on them. The functions of these keys are described below.

Pressed before the function code when inputting an instruction via its function code. Pressed to enter SFT (the Shift Register instruction). Input either after a function code to designate the differentiated form of an instruction or after a ladder instruction to designate an inverse condition. Pressed to enter AND (the AND instruction) or used with NOT to enter AND NOT. Pressed to enter OR (the OR instruction) or used with NOT to enter OR NOT. Pressed to enter CNT (the Counter instruction) or to designate a TC number that has already been defined as a counter. Pressed to enter LD (the Load instruction) or used with NOT to enter LD NOT. Also pressed to indicate an input bit. Pressed to enter OUT (the Output instruction) or used with NOT to enter OUT NOT. Also pressed to indicate an output bit. Pressed to enter TIM (the Timer instruction) or to designate a TC number that has already been defined as a timer. Pressed before designating an address in the TR area. Pressed before designating an address in the LR area. Pressed before designating an address in the HR area. Pressed before designating an address in the AR area. Pressed before designating an address in the DM area. Pressed before designating an address in the EM area. Pressed before designating an indirect DM address. Pressed before designating a word address. Pressed before designating an operand as a constant. Pressed before designating a bit address. Pressed to select either the upper or lower function for keys that have two functions. Pressing this key once selects the upper function, and pressing it again selects the lower function. Selects expanded functions when used in combination with other keys. Pressed before the numeric keys 0 to 5 to input the hexadecimal numerals A to F.

97

Page 111

Section

Preparation for Operation

4-6

4-5-2 PC Modes The Programming Console is equipped with a switch to control the PC mode. To select one of the three operating modes - RUN, MONITOR, or PROGRAM - use the mode switch. The mode that you select will determine PC operation as well as the procedures that are possible from the Programming Console. RUN mode is the mode used for normal program execution. When the switch is set to RUN and the START input on the CPU Power Supply Unit is ON, the CPU Unit will begin executing the program according to the program written in its Program Memory. Although monitoring PC operation from the Programming Console is possible in RUN mode, no data in any of the memory areas can be input or changed. MONITOR mode allows you to visually monitor in-progress program execution while controlling I/O status, changing PV (present values) or SV (set values), etc. In MONITOR mode, I/O processing is handled in the same way as in RUN mode. MONITOR mode is generally used for trial system operation and final program adjustments. In PROGRAM mode, the PC does not execute the program. PROGRAM mode is for creating and changing programs, clearing memory areas, and registering and changing the I/O table. A special Debug operation is also available within PROGRAM mode that enables checking a program for correct execution before trial operation of the system. ! Caution

Do not leave the Programming Console connected to the PC by an extension cable when in RUN mode. Noise picked up by the extension cable can enter the PC, affecting the program and thus the controlled system.

4-5-3 The Display Message Switch Pin 3 of the CPU Unit’s DIP switch determines whether Japanese or English language messages will be displayed on the Programming Console. It is factory set to ON, which causes English language messages to be displayed.

4-6

Preparation for Operation This section describes the procedures required to begin Programming Console operation. These include password entry, clearing memory, error message clearing, and I/O table operations. I/O table operations are also necessary at other times, e.g., when changes are to be made in Units used in the PC configuration. ! Caution

Always confirm that the Programming Console is in PROGRAM mode when turning ON the PC with a Programming Console connected unless another mode is desired for a specific purpose. If the Programming Console is in RUN mode when PC power is turned ON, any program in Program Memory will be executed, possibly causing a PC-controlled system to begin operation. The following sequence of operations must be performed before beginning initial program input.

1, 2, 3...

1. Insert the mode key into the Programming Console. 2. Set the mode switch to PROGRAM mode. (The mode key cannot be removed while set to PROGRAM mode.) 3. Turn ON PC power. Note When I/O Units are installed, turn ON those Units also. The Programming Console will not operate if these Units are not turned ON.

98

Page 112

Section

Preparation for Operation

4-6

4. Confirm that the CPU Unit’s POWER LED is lit and the following display appears on the Programming Console screen. (If the PC mode is not displayed, turn OFF and restart the power supply. If the ALM/ERR LED is lit or flashing or an error message is displayed, clear the error that has occurred.)

<PROGRAM> PASSWORD!

5. Enter the password. See 4-6-1 Entering the Password for details. 6. Clear memory. Skip this step if the program does not need to be cleared. See 4-6-3 Clearing Memory for details.

4-6-1 Entering the Password To gain access to the PC’s programming functions, you must first enter the password. The password prevents unauthorized access to the program. The PC prompts you for a password when PC power is turned ON or, if PC power is already ON, after the Programming Console has been connected to the PC. To gain access to the system when the “Password!” message appears, press CLR and then MONTR. Then press CLR to clear the display. If the Programming Console is connected to the PC when PC power is already ON, the first display below will indicate the mode the PC was in before the Programming Console was connected. Ensure that the PC is in PROGRAM mode before you enter the password. When the password is entered, the PC will shift to the mode set on the mode switch, causing PC operation to begin if the mode is set to RUN or MONITOR. The mode can be changed to RUN or MONITOR with the mode switch after entering the password.

<PROGRAM> PASSWORD! <PROGRAM>

BZ

Indicates the mode set by the mode selector switch.

4-6-2 Buzzer Immediately after the password is input or anytime immediately after the mode has been changed, SHIFT and then the 1 key can be pressed to turn ON and OFF the buzzer that sounds when Programming Console keys are pressed. If BZ is displayed in the upper right corner, the buzzer is operative. If BZ is not displayed, the buzzer is not operative. This buzzer also will also sound whenever an error occurs during PC operation. Buzzer operation for errors is not affected by the above setting.

99

Page 113

Section

Preparation for Operation

4-6

4-6-3 Clearing Memory Using the Memory Clear operation it is possible to clear all or part of the UM area (RAM or EEPROM), and the IR, HR, AR, DM, EM and TC areas. Unless otherwise specified, the clear operation will clear all of the above memory areas. The UM area will not be cleared if the write-protect switch (pin 1 of the CPU Unit’s DIP switch) is set to ON. Before beginning to programming for the first time or when installing a new program, all areas should normally be cleared. Before clearing memory, check to see if a program is already loaded that you need. If you need the program, clear only the memory areas that you do not need, and be sure to check the existing program with the program check key sequence before using it. The check sequence is provided later in this section. Further debugging methods are provided in Section 7 Program Monitoring and Execution. To clear all memory areas press CLR until all zeros are displayed, and then input the keystrokes given in the top line of the following key sequence. The branch lines shown in the sequence are used only when performing a partial memory clear, which is described below. Memory can be cleared in PROGRAM mode only. The following table shows which memory areas will be cleared for the 3 memory clearing operations (all clear, partial clear, memory clear). Memory Area

Note

All Clear

100

All clear

Partial clear

Memory clear

I/O words

Cleared

Cleared

Cleared

Work words

Cleared

---

Cleared

HR, AR, TC, DM, fixed DM

Cleared

Cleared

Cleared

Expansion DM

Cleared

---

Cleared

EM

Cleared

Cleared

Cleared

I/O comments

Cleared

---

---

Ladder program

Cleared

Cleared

Cleared

UM Allocation information

Cleared

---

---

1. The error history area (DM 6000 to DM 6030) will not be cleared when the DM area is cleared. 2. When the PC Setup area (DM 6600 to DM 6655 in fixed DM) is cleared, the settings will be returned to their factory-set defaults. 3. When the All Clear operation is executed, the ladder program area will be allocated entirely to the ladder program. (The expansion DM and I/O comment areas will be set to 0 KW.) Also , all EM banks will be cleared. The key sequence for all clear is shown below.

Page 114

Section

Preparation for Operation

4-6

The following procedure is used to clear memory completely. MEMORY ERR I/O VER ERR

Continue pressing the CLR key once for each error message until “00000” appears on the display

00000 00000 00000MEMORY CLR? HR CNT DM EM~ 00000MEM ALLCLR?

All clear

00000MEM ALLCLR END Partial Clear

It is possible to retain the data in specified areas or part of the ladder program. To retain the data in the HR and AR, TC, DM, and/or EM areas, press the appropriate key after entering REC/RESET. HR is pressed to designate both the HR and AR areas. In other words, specifying that HR is to be retained will ensure that AR is retained also. If not specified for retention, both areas will be cleared. CNT is used for the entire TC area. Press Shift + DM to specify the EM area. The display will show those areas that will be cleared. It is possible to retain some EM banks and clear others. See the explanation under the heading “Clearing Selected EM Banks” on page 102. It is also possible to retain a portion of the ladder program from the beginning to a specified address. After designating the data areas to be retained, specify the first program address to be cleared. For example, to leave addresses 00000 to 00122 untouched, but to clear addresses from 00123 to the end of Program Memory, input 00123. The key sequence for a partial memory clear is shown below.

Program Memory cleared from designated address. Both AR and HR areas

TC area

Retained if pressed

DM area

EM area

101

Page 115

Section

Preparation for Operation

4-6

To leave the TC area uncleared and retain Program Memory addresses 00000 through 00122, input as follows: 00000 00000 00000 00000MEMORY CLR? HR CNT DM EM~ 00000MEMORY CLR? HR DM EM~ 00123MEMORY CLR? HR DM EM~ 00000MEMORY CLR END HR DM EM

Clearing Selected EM Banks When a partial memory clear operation is being performed, specific banks can be selected for clearing rather than selecting the entire EM area. In the following example, EM banks 0 and 2 are selected for clearing. The Programming Console will display the following screens: 00000 00000 00000 00000MEMORY CLR? HR CNT DM EM 00000 EM CLR 012

?

00000 EM CLR 0 2

?

00000 EM CLR END 0 2

Memory Clear

102

The memory clear operation clears all memory areas except the I/O comments and UM Allocation information.

Page 116

Section

Preparation for Operation

4-6

The Programming Console will display the following screens: 00000 00000 00000 00000MEMORY CLR? HR CNT DM EM~ 00000MEMORY CLR END Note When the write-protect switch (pin 1 of the CPU Unit’s DIP switch) is set to ON, the UM area (from DM 6144 through the ladder program) will not be cleared. Other data areas, such as HR, AR, CNT, and DM from DM 0000 to DM 6143 will be cleared.

4-6-4 Registering the I/O Table The I/O Table Registration operation records the types of I/O Units controlled by the PC and the Rack locations of the I/O Units. It also clears all I/O bits. It is not absolutely necessary to register the I/O table with a C200HX/HG/HE. When the I/O table has not been registered, the PC will operate according to the I/O Units mounted when power is applied. The I/O verification/setting error will not occur. It is necessary to register the I/O table if I/O Units are changed, otherwise an I/O verification error message, “I/O VER ERR” or “I/O SET ERROR”, will appear when starting programming operations. I/O Table Registration can be performed only in PROGRAM mode with the writeprotection switch (pin 1 of the CPU Unit’s DIP switch) set to OFF (OFF=“WRITE”). Key Sequence

103

Page 117

Section

Preparation for Operation

4-6

Initial I/O Table Registration 00000 00000 FUN (??) 00000IOTBL ?Ć?U=

?

00000IOTBL

WRIT ????

00000IOTBL

WRIT 9713

00000IOTBL OK

WRIT

Register I/O table

4-6-5 Clearing Error Messages After the I/O table has been registered, any error messages recorded in memory should be cleared. It is assumed here that the causes of any of the errors for which error messages appear have already been taken care of. If the beeper sounds when an attempt is made to clear an error message, eliminate the cause of the error, and then clear the error message (refer to Section 9 Troubleshooting). To display any recorded error messages, press CLR, FUN, and then MONTR. The first message will appear. Pressing MONTR again will clear the present message and display the next error message. Continue pressing MONTR until all messages have been cleared. Although error messages for fatal errors can be accessed in any mode, they can be cleared only in PROGRAM mode. Key Sequence

4-6-6 Verifying the I/O Table The I/O Table Verification operation is used to check the I/O table registered in memory to see if it matches the actual sequence of I/O Units mounted. The first inconsistency discovered will be displayed as shown below. Every subsequent pressing of VER displays the next inconsistency. Note This operation can be executed only when the I/O table has been registered. Key Sequence

104

Page 118

Section

Preparation for Operation

4-6

Example 00000 00000 FUN (??) 00000IOTBL ?Ć?U=

?

00000IOTBL OK

CHK

00000IOTBL CHK 0-1U=O*** I***

(No errors)

(A verification error occurred)

Actual I/O words Registered I/O table words I/O slot number Rack number

Meaning of Displays

The following display indicates a C500, C1000H, or C2000H and C200H, C200HS, or C200HX/HG/HE have the same unit number on a Remote I/O Slave Rack. 00000I/OTBL CHK *Ć*U=ĆĆĆĆ The following display indicates a duplication in Optical I/O Unit unit numbers. 00000I/OTBL CHK 2**HU=R*ĆI R*ĆW Indicates duplication

105