KOYO光洋PLC编程指令大全 下载本文

1. Contact

1) Standard contact:

-| |- Normally Open Contact

The Store (STR) instruction begins a new rung or an additional branch in a rung with a normally open contact.

The And (AND) instruction logically ands a normally open contact in series with another contact in a rung.

The Or (OR) instruction logically ors a normally open contact in parallel with another contact in a rung.

Status of the contact will be the same state as the associated image register point or memory location.

-|/|- Normally Closed Contact

The Store Not (STRN) instruction begins a new rung or an additional branch in a rung with a normally closed contact.

The And Not (ANDN) instruction logically ands a normally closed contact in series with another contact in a rung.

The Or Not (ORN) instruction logically ors a normally closed contact in parallel with another contact in a rung.

Status of the contact will be opposite the state of the associated image register point or memory location.

2) Comparative contact

-| < |- Less-Than Comparative Contact

The Store If Less Than (STRLT) instruction begins a new rung or additional branch in a rung with a normally closed comparative contact.

The And If Less Than (ANDLT) instruction connects a normally open comparative contact in series with another contact.

The Or If Less Than (ORLT) instruction connects a normally open comparative contact in parallel with another contact.

The contact will be on when Aaaa < Bbbb.

-| <> |- Not-Equal-To Comparative Contact

The Store If Not Equal (STRNE) instruction begins a new rung or additional branch in a rung with a

normally closed comparative contact.

The And If Not Equal (ANDNE) instruction connects a normally closed comparative contact in series with another contact.

The Or If Not Equal (ORNE) instruction connects a normally closed comparative contact in parallel with another contact.

The contact will be on when Aaaa <> Bbbb.

-| = |- Equal-To Comparative Contact

The Store If Equal (STRE) instruction begins a new rung or additional branch in a rung with a normally open comparative contact.

The And If Equal (ANDE) instruction connects a normally open comparative contact in series with another contact.

The Or If Equal (ORE) instruction connects a normally open comparative contact in parallel with another contact.

The contact will be on when Aaaa = Bbbb.

-| >= |- Greater-Than-Or-Equal-To Comparative Contact

The Store If Greater Than Or Equal (STRGE) instruction begins a new rung or additional branch in a rung with a normally open comparative contact.

The And If Greater Than Or Equal (ANDGE) instruction connects a normally open comparative contact in series with another contact.

The Or If Greater Than Or Equal (ORGE) instruction connects a normally open comparative contact in parallel with another contact.

The contact will be on when Aaaa >= Bbbb.

3) Program control

NOT - Not Instruction

The Not instruction inverts the status of the rung at the point of the instruction.

4) Immediate I/O -| I |- Immediate Contact

The Store Immediate (STRI) instruction begins a new rung or additional branch in a rung.

The And Immediate (ANDI) instruction connects two contacts in series.

The Or Immediate (ORI) instruction connects two contacts in parallel.

The status of the contact will be the same as the status of the associated input point on the module at the time the instruction is executed. The image register is not updated.

-| I/ |- Immediate Not Contact

The Store Not Immediate (STRNI) instruction begins a new rung or additional branch in a rung.

The And Not Immediate (ANDNI) instruction connects two contacts in series.

The Or Not Immediate (ORNI) instruction connects two contacts in parallel.

The status of the contact will be opposite the status of the associated input point on the module at the time the instruction is executed. The image register is not updated.

5) Differential -| _|?|- Positive Differential Contact

The Store Positive Differential (STRPD) instruction begins a new rung or additional branch in a rung.

The And Positive Differential (ANDPD) instruction connects two contacts in series.

The Or Positive Differential (ORPD) instruction connects two contacts in parallel.

This is a leading edge triggered one-shot contact. When the corresponding memory location transitions from low to high, the contact comes on for one CPU scan. -| 瘄_ |- Negative Differential Contact

The Store Negative Differential (STRND) instruction begins a new rung or additional branch in a rung.

The And Negative Differential (ANDND) instruction connects two contacts in series.

The Or Negative Differential (ORND) instruction connects two contacts in parallel.

This is a trailing edge triggered one-shot contact. When the corresponding memory location transitions from high to low, the contact comes on for one CPU scan.

2. Coil

1) Standard coil

OROUT - Or Out Coil

The Or Out instruction has been designed to use more than 1 rung of discrete logic to control a single

output. Multiple Or Out instructions referencing the same output coil may be used, since all contacts controlling the output are ored together. If the status of any rung is on, the output will also be on. OUT - Out Coil

The Out instruction reflects the status of the rung (on/off) and outputs the discrete (on/off) state to the specified image register point or memory location. Multiple Out instructions referencing the same discrete location should not be used since only the last Out instruction in the program will control the physical output point. See Or Out (OROUT). PD - Positive Differential Coil

The Positive Differential instruction is typically known as a one shot. When the input logic produces an off to on transition, the output will energize for one CPU scan. RST - Reset Coil

The Reset instruction resets or turns off an image register point/memory location or a range of image registers points/memory locations. Once the point/location is reset it is not necessary for the input to remain on.

SET - Set Coil

The Set instruction sets or turns on an image register point/memory location or a consecutive range of image register points/memory locations. Once the point/location is set it will remain on until it is reset using the Reset (RST) instruction. It is not necessary for the input controlling the Set instruction to remain on.

2) RLL plus

CVJMP - Converge Jump Coil

The Converge Stage instruction is used to group certain stages together by defining them as Converge Stages. When all of the Converge Stages within a group become active, the CVJMP instruction will execute. All Converge Stages are deactivated one scan after the CVJMP instruction is executed.

Additional logic instructions are only allowed following the last Converge Stage instruction and before the CVJMP instruction. Multiple CVJMP instructions are allowed. Converge Stages must be programmed in the main body of the application program. This means they cannot be programmed in Subroutines or Interrupt Routines.

JMP - Jump to Stage Coil

The Jump instruction allows the program to transition from an active stage which contains the jump instruction to another stage which is specified in the instruction. The jump will occur when the input logic is true. The active stage that contains the Jump will be deactivated 1 scan after the Jump instruction is executed.

NJMP - Not Jump Coil

The Not Jump instruction allows the program to transition from an active stage which contains the jump instruction to another which is specified in the instruction. The jump will occur when the input logic is off. The active stage that contains the Not Jump will be deactivated 1 scan after the Not Jump instruction is executed.