More Instructions

More instructions

rrpilde_small.png

Special instructions: Counters, Timers,...

  1. CTU (Counter Up).
  2. CTD (Counter Down).
  3. CTUD (Counter Up/Down).
  4. TON (Timer On).
  5. TOF (Timer Off).
  6. TP (Pulse Timer).
  7. Analog instructions.

 

CTU Counter Up

Shortcut: none.
Click on More Instructions in the Instructions menu.

This function add a Counter Up instruction to the ladder diagram.
Click on the More Instructions button in the toolbar and select an area in the ladder diagram where you want to place the instruction.

ldr.hlp.instructionaddmore_1.png

This brings up a dialog box, which allows the user to select counters, timers,...
Select a CTU (count up counter) and click on the OK button.

ldr.hlp.instructionaddmore_2.png

An Add Counter dialog box will appear. You can make the following settings in the dialog box:

  1. CTU: Give the counter a unique number between 0 and 31.
  2. Name: An unique name for the counter.
  3. Preset Value: Value between 0 and 32767.
  4. Count Up Signal:
    1. Input (32) 0.0 - 3.7
    2. Output (32) 0.0 - 3.7
    3. Memory (bit) (255) 0.0 - 31.7
    4. Timer (32) 0 - 31
    5. Counter (32) 0 - 31
  5. Comment: Place a comment for the instruction

The input field "name" and "comment" is not required.

ldr.hlp.instructionaddmorectu_1.png

ldr.hlp.instructionaddmorectu_2.png

Definition of a CTU Counter Up.
A counter is set to some preset value and, when this value of input pulses has been received, it will operate its contacts. Up-counters counts from zero up to the preset value.
The up counter counts up from a current value to a preset value (PV). Input CU is the count input. Each time CU transitions from a logic 0 to a logic 1 the counter increments by a count of 1. Input R is the reset. A preset count value is stored in PV input. If the current count is equal to or greater than the preset value stored in PV, the output bit (Q) turns on (not shown).
ldr.hlp.counter.ctu.diagram.png

 

 

CTD Counter Down

Shortcut: none.
Click on More Instructions in the Instructions menu.

This function add a Counter Down instruction to the ladder diagram.
Click on the More Instructions button and select an area in the ladder diagram where you want to place the instruction.

ldr.hlp.instructionaddmore_1.png

This brings up a dialog box, which allows the user to select counters, timers,...
Select a CTD (count up counter) and click on the OK button.

ldr.hlp.instructionaddmore_2.png

An Add Counter dialog box will appear. You can make the following settings in the dialog box:

  1. CTD: Give the counter a unique number between 0 and 31.
  2. Name: An unique name for the counter.
  3. Preset Value: Value between 0 and 32767.
  4. Count Down Signal:
    1. Input (32) 0.0 - 3.7
    2. Output (32) 0.0 - 3.7
    3. Memory (bit) (255) 0.0 - 31.7
    4. Timer (32) 0 - 31
    5. Counter (32) 0 - 31
  5. Comment: Place a comment for the instruction

The input field "name" and "comment" is not required.

ldr.hlp.instructionaddmorectd_1.png

 

ldr.hlp.instructionaddmorectd_2.png

Definition of a CTD Counter Down.
A counter is set to some preset value and, when this value of input pulses has been received, it will operate its contacts. Down-counters counts from preset value down to zero.
The down counter counts down from the preset value (PV) each time CD transitions from a logic 0 to a logic 1. When the current value is equal to zero the counter output bit (Q) turns on (not shown). The counter resets and loads the current value with the preset value (PV) when the load input (LD) is enabled.

ldr.hlp.counter.ctd.diagram.png

 

 

Counter Up/Down

Shortcut: none.
Click on More Instructions in the Instructions menu.

This function add a Counter Down instruction to the ladder diagram.
Click on the More Instructions button in the toolbar and select an area in the ladder diagram where you want to place the instruction.

ldr.hlp.instructionaddmore_1.png

This brings up a dialog box, which allows the user to select counters, timers,...
Select a CTUD (count up/down counter) and click on the OK button.

ldr.hlp.instructionaddmore_2.png

An Add Counter dialog box will appear. You can make the following settings in the dialog box:

  1. CTUD: Give the counter a unique number between 0 and 31.
  2. Name: An unique name for the counter.
  3. Preset Value: Value between 0 and 32767.
  4. Count Up Signal:
    1. Input (32) 0.0 - 3.7
    2. Output (32) 0.0 - 3.7
    3. Memory (bit) (255) 0.0 - 31.7
    4. Timer (32) 0 - 31
    5. Counter (32) 0 - 31
  5. Count Down Signal:
    1. Input (32) 0.0 - 3.7
    2. Output (32) 0.0 - 3.7
    3. Memory (bit) (255) 0.0 - 31.7
    4. Timer (32) 0 - 31
    5. Counter (32) 0 - 31
  6. Count Load Signal:
    1. Input (32) 0.0 - 3.7
    2. Output (32) 0.0 - 3.7
    3. Memory (bit) (255) 0.0 - 31.7
    4. Timer (32) 0 - 31
    5. Counter (32) 0 - 31
  7. Comment: Place a comment for the instruction

The input field "name" and "comment" is not required.

ldr.hlp.instructionaddmorectud_1.png

ldr.hlp.instructionaddmorectud_2.png

Definition of a CTUD Counter Up/Down.
A counter is set to some preset value and, when this value of input pulses has been received, it will operate its contacts.
The up/down counter counts up or down from the preset value each time either CD or CU transitions from a logic 0 to a logic 1. When the current value is equal to the preset value, the output QU turns on. When the current value (CV) is equal to zero, the output QD turns on. The counter loads the current value (CV) with the preset value (PV) when the load input (LD) is enabled. Similarly, the counter resets and loads the current value (CV) with zero when the reset (R) is enabled. The counter stops counting when it reaches preset or zero.
Down output not implemented yet!

ldr.hlp.counter.ctud.diagram.png

 

Timer On

Shortcut: none.
Click on More Instructions in the Instructions menu.

This function add a Timer On instruction to the ladder diagram.
Click on the More Instructions button in the toolbar and select an area in the ladder diagram where you want to place the instruction.

ldr.hlp.instructionaddmore_1.png

This brings up a dialog box, which allows the user to select counters, timers,...
Select a TON (timer on) and click on the OK button.

ldr.hlp.instructionaddmore_2.png

An Add Timer dialog box will appear. You can make the following settings in the dialog box:

  1. TON: Give the timer a unique number between 0 and 31.
  2. Name: An unique name for the timer.
  3. Preset Time: Value between 0 and 32767
  4. Time base:
    1. 1ms
    2. 10ms
    3. 100ms
  5. Comment: Place a comment for the instruction

The input field "name" and "comment" is not required.

ldr.hlp.instructionaddmoreton_1.png

ldr.hlp.instructionaddmoreton_2.png

Definition of a TON Timer On.
Generally, ON timers begin timing when the input (enable) line goes true, and reset if the enable line goes false before setpoint has been reached. If enabled until setpoint is reached then the timer output goes true, and stays true until the input (enable) line goes false.

ldr.hlp.timer.ton.diagram.png

When the On-Delay timer (TON) receives an enable (logic 1) at its input (IN), a predetermined amount of time (preset time - PT) passes before the timer bit (T-bit) turns on. The T-bit is a logic function internal to the timer and is not shown on the symbol. The timer resets to the starting time when the enabling input goes to a logic 0.

 

 

TOF Timer Off

Shortcut: none.
Click on More Instructions in the Instructions menu.

This function add a Timer Off instruction to the ladder diagram.
Click on the More Instructions button in the toolbar and select an area in the ladder diagram where you want to place the instruction.

ldr.hlp.instructionaddmore_1.png

This brings up a dialog box, which allows the user to select counters, timers,...
Select a TOF (timer off) and click on the OK button.

ldr.hlp.instructionaddmore_2.png

An Add Timer dialog box will appear. You can make the following settings in the dialog box:

  1. TOF: Give the timer a unique number between 0 and 31.
  2. Name: An unique name for the timer.
  3. Preset Time: Value between 0 and 32767
  4. Time base:
    1. 1ms
    2. 10ms
    3. 100ms
  5. Comment: Place a comment for the instruction

The input field "name" and "comment" is not required.

ldr.hlp.instructionaddmoretof_1.png

 

ldr.hlp.instructionaddmoretof_2.png

Definition of a TOF Timer Off.
The Off-Delay timer is used to delay an output off for a fixed period of time after the input turns off. When the enabling bit turns on the timer bit turns on immediately and the value is set to 0. When the input turns off, the timer counts until the preset time has elapsed before the timer bit turns off.

ldr.hlp.timer.tof.diagram.png

Generally, OFF timers begin timing on a true-to-false transition, and continue timing as long as the preceding logic remains false. When the accumulated time equals setpoint the TOF output goes on, and stays on until the rung goes true.

 

 

TP Pulse Timer

Shortcut: none.
Click on More Instructions in the Instructions menu.

This function add a Pulse Timer instruction to the ladder diagram.
Click on the More Instructions button in the toolbar and select an area in the ladder diagram where you want to place the instruction.

ldr.hlp.instructionaddmore_1.png

This brings up a dialog box, which allows the user to select counters, timers,...
Select a TP (Pulse Timer) and click on the OK button.

ldr.hlp.instructionaddmore_2.png

An Add Timer dialog box will appear. You can make the following settings in the dialog box:

  1. TP: Give the timer a unique number between 0 and 31.
  2. Name: An unique name for the timer.
  3. Preset Time: Value between 0 and 32767
  4. Time base:
    1. 1ms
    2. 10ms
    3. 100ms
  5. Comment: Place a comment for the instruction

The input field "name" and "comment" is not required.

ldr.hlp.instructionaddmoretp_1.png

 

ldr.hlp.instructionaddmoretp_2.png

Definition of a TP Pulse Timer.
The rising edge of input IN will start the timer, but only if it is idle. Output Q will be set to TRUE for the time given by input PT. A falling edge on IN will not stop the timer nor change the output Q while the timer is running, neither will another rising edge during this time restart the timer. Input PT is samples only on the rising edge of IN starting the timer, later changes will have no effect.

ldr.hlp.timer.tp.diagram.png

 


 

Add new comment