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

The text of a manual · part 31 of 36

DL305 User Manual, pages 297 to 306

Pages 297 to 306 of 356

The original document is the PDF (3.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 GE DL330 / D3-330, Fanuc DL330 / D3-330 and GE Fanuc DL330 / D3-330

Page 297

RLL PLUS Instruction Set Stage Instructions

12–3

Stage Instructions

Stage (SG) DL330P Only

The Stage instruction creates segments of a RLL PLUS program. Stages are activated by transitional logic, a jump or set stage executed from an active stage. Stages are de–activated one scan after transitional logic, a jump, or a reset stage instruction is executed. Data Type

Stages

SG

D3–330 Range

D3–340 Range aaaa aaaa aaaa

––

––

0–177

ISG

S aaa

SG

S aaa

D3–330P Range

RLLPLUS Instructions

The Initial Stage instruction is normally used as the first segment of a RLL PLUS program. Initial stages are activated when the CPU enters the run mode, this creates a starting point in the program. The Initial Stage can be made inactive by either jumping from it or resetting it. Multiple Initial Stages are allowed in a program.

Instruction Set

Initial Stage (ISG) DL330P Only

Page 298

12–4

RLL PLUS Instruction Set Stage Instructions

Instruction Set

The following example is a simple RLL PLUS program. This program utilizes the Initial Stage, Stage, and Jump instructions to create a structured program. DirectSOFT Display

ISG

Handheld Programmer Keystrokes

S0

000

010 OUT

001

S2 SET

RLLPLUS Instructions

005

S1 JMP

SG

S1

002

011 OUT

SG

S2

006

012 OUT

007

S1

S0 JMP

ISG STR

SHF SHF

0 0

ENT ENT

OUT STR SET

SHF SHF SG

1 1 SHF

0 ENT 2

STR JMP SG STR

SHF SG SHF SHF

5 1 1 2

ENT ENT ENT ENT

OUT SG STR

SHF SHF SHF

1 2 6

1 ENT ENT

ENT

OUT STR AND JMP

SHF SHF SG SG

1 7 1 0

2 ENT ENT ENT

ENT

ENT ENT

Page 299

RLL PLUS Instruction Set Stage Instructions

Not Jump (NOT JMP) DL330P Only

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 false. The active stage that contains the Not Jump will be de–activated 1 scan after the Not Jump instruction is executed. Data Type

Stages

SG

SG aaa JMP

SG aaa NJMP

RLLPLUS Instructions

The 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 true. The active stage that contains the Jump will be de–activated 1 scan after the Jump instruction is executed.

Instruction Set

Jump (JMP) DL330P Only

12–5

D3–330 Range

D3–340 Range aaaa aaaa

D3–330P Range aaaa

––

––

0–177

Page 300

12–6

RLL PLUS Instruction Set Stage Instructions

Instruction Set

The following example is a simple RLL PLUS program. This program utilizes the Initial Stage, Stage, Jump, and Not Jump instructions to create a structured program. DirectSOFT Display

Handheld Programmer Keystrokes

ISG

ISG STR

SG SHF

SHF 0

0 ENT

ENT

OUT STR JMP

SHF SHF SG

1 1 SHF

0 ENT 1

ENT

JMP SG STR

NOT SHF SHF

SG 1 002

SHF ENT ENT

2

OUT STR JMP

SHF SHF SG

1 3 SHF

1 ENT 2

ENT

SG STR OUT STR

SHF SHF SHF SHF

2 4 1 5

ENT ENT 2 ENT

JMP

SG

SHF

0

S0

000

010 OUT

001

S1 JMP

RLLPLUS Instructions

S2 NJMP

SG

S1

002

011 OUT

003

S2 JMP

SG

S2

004

012 OUT

005

S0 JMP

ENT

ENT

ENT ENT

ENT

Page 301

RLL PLUS Instruction Set Stage Instructions

The Store instruction begins a new rung or additional branch in a rung with a normally open stage contact. Status of the contact will be the same state as the associated Stage memory location.

Store Not Stage (STR NOT SG) DL330P Only

The Store Not instruction begins a new rung or additional branch in a rung with a normally closed stage contact. Status of the contact will be opposite the state of the associated stage memory location.

Stages

SG

SG aaa

D3–330 Range

D3–340 Range aaaa aaaa aaaa

––

––

0–177

RLLPLUS Instructions

Data Type

SG aaa

Instruction Set

Store Stage (STR SG) DL330P Only

12–7

D3–330P Range

In the following Store example, when stage contact 000 is on, output 010 will energize. DirectSOFT Display SG 000

Handheld Programmer Keystrokes 010 OUT

STR OUT

SG SHF

SHF 1

0 0

ENT ENT

In the following Store Not example, when stage contact 000 is off output 010 will energize. DirectSOFT Display SG 000

Handheld Programmer Keystrokes 010 OUT

STR OUT

NOT SHF

SG 1

SHF 0

0 ENT

ENT

Page 302

RLLPLUS Instructions

Instruction Set

12–8

RLL PLUS Instruction Set Stage Instructions

Or Stage (OR SG) DL330P Only

Or Not Stage (OR NOT SG) DL330P Only

The Or instruction logically ors a normally open stage contact in parallel with another contact in a rung. The status of the contact will be the same state as the associated stage memory location.

SG aaa

The Or Not instruction logically ors a normally closed stage contact in parallel with another contact in a rung. The status of the contact will be opposite the state of the associated stage memory location. Data Type

Stages

SG

SG aaa

D3–330 Range

D3–340 Range

D3–330P Range aaaa aaaa aaaa

––

––

0–177

In the following Or example, when input 000 or stage contact 001 is on output 010 will energize. DirectSOFT Display 000

Handheld Programmer Keystrokes 010 OUT

STR OR OUT

SHF SG SHF

0 SHF 1

ENT 1 0

ENT ENT

SG 001

In the following Or Not example, when input 000 is on or stage contact 001 is off output 010 will energize. DirectSOFT Display

000

Handheld Programmer Keystrokes 010 OUT

SG 001

STR OR OUT

SHF NOT SHF

0 SG 1

ENT SHF 0

1 ENT

ENT

Page 303

RLL PLUS Instruction Set Stage Instructions

The And instruction logically ands a normally open stage contact in series with another contact in a rung. The status of the contact will be the same state as the associated stage memory location.

And Not Stage (AND NOT SG) DL330P Only

The And Not instruction logically ands a normally closed stage contact in series with another contact in a rung. The status of the contact will be opposite the state of the associated stage memory location.

Stages

SG

SG aaa

D3–330 Range

D3–340 Range aaaa aaaa aaaa

–

–

0–177

RLLPLUS Instructions

Data Type

SG aaa

D3–330P Range

In the following And example, when input 000 and stage contact 001 is on output 010 will energize. DirectSOFT Display 000

Handheld Programmer Keystrokes SG 001

010 OUT

STR AND OUT

SHF SG SHF

0 SHF 1

ENT 1 0

ENT ENT

In the following And Not example, when input 000 is on and stage contact 001 is off output 010 will energize. DirectSOFT Display 000

Handheld Programmer Keystrokes SG 001

010 OUT

Instruction Set

And Stage (AND Stage) DL330P Only

12–9

STR AND OUT

SHF NOT SHF

0 SG 1

ENT SHF 0

1 ENT

ENT

Page 304

RLLPLUS Instructions

Instruction Set

12–10

RLL PLUS Instruction Set Stage Instructions

Set (SET) DL330P Only

The Set instruction sets or turns on a output or a consecutive range of outputs. Once the output is set it will remain on until it is reset using the Reset instruction. It is not necessary for the input controlling the Set instruction to remain on. The Set instruction is sometimes known as a latch. The Reset instruction is used to reset the output.

Reset (RST) DL330P Only

The Reset instruction resets or turns off an output or a consecutive range of outputs. Once the output is reset it is not necessary for the input to remain on. The Reset instruction is sometimes known as an unlatch instruction. Data Type

Optional memory range aaa aaa SET

Optional memory range aaa aaa RST

D3–330 Range

D3–340 Range aaaa aaaa

D3–330P Range aaaa

Outputs

––

––

000–177 700–767

Control Relays

––

––

160 – 167 170 – 174 200 – 277

In the following Set example, when input location 005 is on, outputs 20–37 will be set on. DirectSOFT Display 005

Handheld Programmer Keystrokes 020

037

SET

STR SET SHF

SHF SHF 3

5 2 7

ENT 0 ENT

ENT

In the following Reset example, when input location 006 is on, outputs 020–37 will be reset to the off state. DirectSOFT Display 006

Handheld Programmer Keystrokes 020 037 RST

STR RST SHF

SHF SHF 3

6 2 7

ENT 0 ENT

ENT

Page 305

RLL PLUS Instruction Set Stage Instructions

Reset Stage (RST SG) DL330P Only

The Reset instruction resets or turns off a stage or a consecutive range of stages. Once the stage(s) is reset it is not necessary for the input to remain on.

Data Type

Stage

Optional memory range SG aaa aaa SET SG

Optional memory range SG aaa aaa RST SG

D3–330 Range

D3–340 Range aaa aaa aaa

––

––

000–177

RLLPLUS Instructions

The Set Stage instruction sets or turns on a stage or a consecutive range of stages. Once the stage is set it will remain on until a transition is made to another stage or the stage is reset using the Reset Stage instruction. It is not necessary for the input controlling the Set Stage instruction to remain on.

D3–330P Range

In the following Set Stage example, when input 000 is on, stages 30–47 will be set on. DirectSOFT Display 000

Handheld Programmer Keystrokes 030 047 SETSG

STR SET SHF

SHF SG 4

0 SHF 7

ENT 3 ENT

0

ENT

In the following Reset Stage example, when input 003 is on, stages 30–47 will be reset off. DirectSOFT Display 003

Handheld Programmer Keystrokes 030 047 RSTSG

Instruction Set

Set Stage (SET SG) DL330P Only

12–11

STR RST SHF

SHF SG 4

3 SHF 7

ENT 3 ENT

0

ENT

Page 306

12–12

RLL PLUS Instruction Set Comparative Boolean Instructions

RLLPLUS Instructions

Instruction Set

Comparative Boolean Instructions Store If Greater Than or Equal To Timer (STR TMR) DL330P Only

The Store If Greater Than or Equal To instruction begins a new rung or additional branch in a rung with a normally open comparative timer contact. The contact will be on if the specified timer T aaa w B bbbb.

Store Not IF Greater Than Timer (STR NOT TMR) DL330P Only

The Store Not If Greater Than instruction begins a new rung or additional branch in a rung with a normally closed comparative timer contact. The contact will be on if the specified timer T aaa t B bbbb. Operand Data Type

D3–330 Range

T aaa

B bbbb

T aaa

B bbbb

D3–340 Range

D3–330P Range

B aaa bbbb aaa bbbb aaa bbbb

Timers

T

––

––

––

––

600–677

––

Data registers

R

––

––

––

––

––

400–577

Constant

K

––

––

––

––

––

0–9999

In the following Store If Greater Than or Equal To example, when T602 w the value 1538 the contact will turn on and output 014 will energize. DirectSOFT Display T602

K1538

Handheld Programmer Keystrokes 014 OUT

STR SHF

TMR 1

SHF 5

6 3

0 8

OUT

SHF

1

4

ENT

2 ENT

ENT

In the following Store Not If Greater Than example, when T602 t the value in R404 the contact will turn on and output 020 will energize. DirectSOFT Display T602

R404

Handheld Programmer Keystrokes 020 OUT

STR R

NOT 4

TMR 0

SHF 4

6 ENT

OUT

SHF

2

0

ENT

0

4

ENT