• No results found

The keyboard of the Programming Console is functionally divided by key color into the following four areas:

The ten white keys are used to input numeric program data such as program addresses, data area addresses, and operand values. The numeric keys are also used in combination with the function key (FUN) to enter instructions with function codes.

The CLR key clears the display and cancels current Programming Console operations. It is also used when you key in the password at the beginning of END(01)

White Numeric Keys

Red CLR Key

The Programming Console Section 7–3

programming operations. Any Programming Console operation can be can-celled by pressing the CLR key, although the CLR key may have to be pressed two or three times to cancel the operation and clear the display.

The yellow keys are used for writing and correcting programs. Detailed ex-planations of their functions are given later in this section.

Except for the SHIFT key on the upper right, the gray keys are used to input instructions and designate data area prefixes when inputting or changing a program. The SHIFT key is similar to the shift key of a typewriter, and is used to alter the function of the next key pressed. (It is not necessary to hold the SHIFT key down; just press it once and then press the key to be used with it.)

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 func-tions of these keys are described below.

Yellow Operation Keys

Gray Instruction and Data Area Keys

The Programming Console Section 7–3

Pressed before the function code when inputting an instruction via its function code.

Pressed to enter SFT (the Shift Register instruction).

Input after a ladder instruction to designate an inverse condi-tion.

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. Cannot be used with the P-type PCs.

Pressed before designating an address in the HR area.

Pressed before designating an address in the DM area.

Pressed before designating an indirect DM address. Cannot be used with the P-type PCs.

Pressed before designating a word address.

Pressed before designating an operand as a constant.

Pressed before designating a bit address.

7–3–2 PC Modes

The Programming Console is equipped with a switch to control the PC mode.

To select one of 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 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.

The Programming Console Section 7–3

!

!

MONITOR mode allows you to visually monitor in-progress program execu-tion while controlling I/O status, changing PV (present values) or SV (set val-ues), 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 cor-rect execution before trial operation of the system.

WARNING Do not leave the Programming Console connected to the PC by an extension cable when in RUN mode. Noise entering via the extension cable can affect the program in the PC and thus the controlled system.

When the PC is turned on, the mode it is in will depend on what Peripheral Device, if any, is connected or mounted to the CPU.

•No Peripheral Device Connected

When power is applied to the PC without a Peripheral Device connected, the PC is automatically set to RUN mode. Program execution is then con-trolled through the CPU Power Supply Unit’s START terminal.

•Programming Console Connected

If the Programming Console is connected to the PC when PC power is ap-plied, the PC is set to the mode set on the Programming Console’s mode switch.

•Other Peripheral Connected

If a Peripheral Interface Unit, PROM Writer, Printer Interface Unit, or a Floppy Disk Interface Unit is attached to the PC when PC power is turned on, the PC is automatically set to PROGRAM mode.

If the PC power supply is already turned on when a peripheral device is at-tached to the PC, the PC will stay in the same mode it was in before the pe-ripheral device was attached. The mode can be changed with the mode switch on the Programming Console once the password has been entered. If it is necessary to have the PC in PROGRAM mode, (for the PROM Writer, Floppy Disk Interface Unit, etc.), be sure to select this mode before connect-ing the peripheral device, or alternatively, apply power to the PC after the pe-ripheral device is connected.

The mode will also not change when a Peripheral Device is removed from the PC after PC power is turned on.

WARNING 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 any PC-controlled system to begin operation. Also be sure that starting operation is safe and appropriate whenever turning on the PC without a device mounted to the CPU when the START input on the CPU Power Supply Unit is ON.