FBD-Standard Functions


At a Glance
The Boolean function gives the value of the output according to the combination of inputs.
The function has four inputs, and therefore 16 combinations. These combinations can be found in a truth table; for each of these, the output value can be adjusted. The number of configurable combinations depends on the number of inputs connected to the function.
Non-connected inputs are set to 0.
The following figure shows an example of part of the Boolean function truth table:
Zelio_FBD_Standart_Functions_1Zelio_FBD_Standart_Functions_5

Zelio_FBD_Standart_Functions_2
Access
This function is accessible from the FBD function bar.
Parameters
Having connected at least one input, you can configure the value of the output in the truth table, in the Parameters window.
The output values can be 0 for the Inactive state, and 1 for the Active state.
By selecting the Output ON if result is TRUE option, the output takes the value configured in the truth table.
By selecting the Output OFF if result is TRUE option, the output takes the inverse value of the value configured in the truth table.

SET and RESET Function (RS switching)
At a Glance
The RS Switching function operates as follows:
Activation of the SET input activates the output, which remains so even if the SET input is then deactivated,
Activation of the RESET input deactivates the output,
If both inputs are active, the state of the output depends on the configuration of the function:
The output is active if the SET Has Priority option is configured,
The output is inactive if the RESET has priority option is configured.
Non-connected inputs are set to the Inactive state.
Access

Zelio_FBD_Standart_Functions_4

SET and RESET Function (RS switching)

This Zelio_FBD_Standart_Functions_3function is accessible from the FBD function bar.

PRESET COUNT Up/Down Counter

Description
The Preset Up/Down counter function is used to up-count from 0 to the preset value, or to down-count from this value to 0.
Several functions are available:
Up-counting and forcing the counter to 0 on initialization,
Up-counting and forcing the counter to 0 on initialization and when the count value has been reached,
Down-counting and forcing the counter to the preset value on initialization,
Down-counting and forcing the counter to the preset value on initialization and when 0 has been reached.
Access
This function is accessible from the FBD function bar.
Inputs/Outputs
The up/down counter uses:
A discrete Up-Count input,
A discrete Down-Count input,
A discrete Initialization input.
The up/down counter provides:
A Discrete-type Output,
The Preset value (1),
The Current Counter Value (1),
The output timer value (1).
(1) these integer values are displayed in Simulation and Monitoring mode.
Parameters
In the programming software
From the Parameters window, you can adjust:
The Upcounting to the preset value or Downcounting from the preset value,
The Preset or Setpoint value (1),
The Single cycle for initializing the counter only on initialization,
The Repetitive cycle for initializing the counter on initialization, and when the current count value reaches 0 or the preset value.
For the Repetitive cycle, the Duration of the pulse (x 100ms) corresponding to the time during which the output is Active.
Following a power failure, the Latching parameter, if selected, enables the current value of the timer to be retrieved.
From the front panel
From the PARAMETERS menu, you can adjust:
The Preset or Setpoint value (1),
The pulse duration (for a repetitive cycle) (2).
Illustration
Illustration: counter parametersZelio_FBD_Standart_Functions_6 Zelio_FBD_Standart_Functions_7 Zelio_FBD_Standart_Functions_8 Zelio_FBD_Standart_Functions_9 Zelio_FBD_Standart_Functions_10 Zelio_FBD_Standart_Functions_11Zelio_FBD_Standart_Functions_12

 

 

 

H-SPEED COUNT (Fast Counter)

Description
The Fast Counter function is used to count pulses up to a frequency of 1 kHz.
The counter Output indicates whether:
The preset value has been reached (upcounting),
The value 0 has been reached (downcounting).
The fast counter inputs are implicitly connected to the I1 and I2 smart relay inputs:
A pulse (rising edge) on the I1 input increments the counter,
A pulse (rising edge) on the I2 input decrements the counter.
These inputs should not be used on the wiring sheet.
The Fast Counter function can be reset to zero or the preset value (depending on the parameter selected) during use by using the Initialization input.
The counter functions only if the Enable function input is active.
Repetitive mode can be used with a time-delay value.
NOTE: If the current value of the counter exceeds the upper limit: +32767, it goes to -32768.
If the current value of the counter exceeds the lower limit: -32767, it goes to +32768.

NOTE: Note: This function block cannot be simulated.

Access
This function is accessible from the FBD function bar.
Inputs/Outputs
The up/down counter uses:
A Discrete-type Enable function input.
A discrete Initialization input.
2 inputs implicitly connected to the I1 and I2 smart relay inputs.
The up/down counter provides:
A Discrete-type Output,
The Preset value (1),
The Current Counter Value (1),
The Current timer value for output (1).
(1) these integer values are displayed in Simulation and Monitoring mode.
Workshop Setting
Type of counting
Two modes are available:
Upcounting to the preset value: incrementation of the count value,
Downcounting from the preset value: decrementation of the count value.
Preset
This value is between 0 and 32767 (preset value).
Cycle type
Two modes are available:
Single cycle: the current counter value changes on an on-going basis.
The output is activated when the current value is greater than the preset value (counting mode) or when the current value is less than the preset value (counting mode),
Repetitive cycle: the current value of the counter is reinitialized during counting when the value reaches the preset value (counting mode) or 0 (counting mode).
The output is enabled following this reinitialization and remains active during a period of time that can be configured with the parameter: Duration of pulse (from 1 to 32,767 times 100 ms).
Latching
By default, after a power cut, the counter is set to the state that corresponds to program initialization.
To restore the state of the counter backed up on power loss, it is essential to activate latching.
Configuration from the Front Panel
From the PARAMETERS menu, you can adjust:
The setpoint value,
The DURATION OF PULSE (for a repetitive cycle).
Illustration: Parameter screen for a fast counter in Zelio entry / Front panel mode:

 

Number
Parameter
Description
1
Setpoint
Counter preset value.
2
Duration of pulse
Only if the cycle is repetitive

NOTE: This type of cycle cannot be modified from the front panel.

Parameter lock
Locking prevents modification of the parameters of the locked function block from the front panel of the logical module using the PARAMETERS menu.
Up-Counting in Single Cycle Mode
For the following 4 charts, the blue curve represents the internal counter value, when it increases there are pulses on I1 and when it decreases, pulses on I2.
The following diagram shows the operation of the counter with initialization at 0:
Zelio_FBD_Standart_Functions_13

Zelio_FBD_Standart_Functions_14

Zelio_FBD_Standart_Functions_15
Down-Counting in Single Cycle Mode
The following diagram shows the operation of the down-counter with initialization at the preset value:
Zelio_FBD_Standart_Functions_16

Up-counting in Repetitive Cycle Mode
The following diagram shows the operation of the counter with forcing to 0 of the current value on initialization, or when the count value has reached the preset value:
Zelio_FBD_Standart_Functions_17

The output switches to the Inactive state when the predefined pulse duration value has run out. If the switch condition is Active before the switch to the Inactive state, the output pulse is extended by the Duration of pulse (Timing).
Down-Counting Function in Repetitive Cycle Mode
The following diagram shows the operation of the down-counter with forcing to the preset value of the current value on initialization, or when the count value has reached 0:
Zelio_FBD_Standart_Functions_18
The output switches to the Inactive state when the predefined pulse duration value has run out. If the switch condition is Active before the switch to the Inactive state, the output pulse is extended by the Duration of pulse (Timing).

 

UP/DOWN COUNT (Up/Down Counter)

Description
The Up/Down Counter function is used to up-count or down-count from a preset value resulting from a calculation outside the function.
A level 1 on the Preset forcing input is used to change the counter with the value available at the Preset input.
The Preset input can be connected to the NUM constant, to an analog input, or to any other kind of function block output which delivers an integer-type value.
A rising edge on the:
Upcounting: increments the counter.
Downcounting: decrements the counter.
State of the Output:
1: When the counting number has been reached, the Output switches to 1 and remains so for as long as the counting number is greater than or equal to the Preset value,
0: If the transitions on the Downcounting input switch the counting number back to a value less than the Preset value.
Activation of the Reset or Preset forcing inputs enables the counter to be relaunched.
When the Reset input is set to 1, the Output remains in state 0. When the Reset input becomes 0, the up/down counting operation is restarted from zero.
Access
This Zelio_FBD_Standart_Functions_19 function is accessible from the FBD function bar.
Inputs/Outputs
The Up/Down counter uses the following inputs:
Discrete-type Upcounting,
Discrete-type Downcounting,
Discrete-type Reset.
Discrete-type Preset forcing.
Integer-type Preset.
The up/down counter provides the following outputs:
Output (Integer-type),
Current value, integer type, between -32768 and 32767.
Parameters
The Latching parameter, if selected, enables the current value of the timer to be retrieved following a power failure.

TIMER A/C (Timer)

 

At a Glance
The Timer function is used to delay, prolong and control actions over a predetermined time.
The Timer has three functions:
The A function: timer on-delay, or timer active,
The C function: timer off-delay, or timer idle,
The function A/C: combination of functions A and C.
Access
The Zelio_FBD_Standart_Functions_20  function is accessible from the FBD function bar.
Inputs/Outputs
The Timer features:
A discrete Command input,
A discrete Reset input.
The timer provides:
A Discrete-type output,
A copy of the activation delay setpoint (1),
A copy of the deactivation delay setpoint (1),
The current value of the activation delay (1),
The current value of the deactivation delay (1).
(1) these integer values are displayed in Simulation and Monitoring mode.
Parameters
In the programming software
From the Parameters window, you can adjust the value of the delays for each of the functions (A, C and A/C).
ON delay for function A,
OFF delay for function C,
A combination of both the ON and OFF delays can be used to adjust function A/C.
In the event of a power failure, the Latching parameter, if selected, enables the timer to be restarted at the point where it stopped.
From the front panel
From the PARAMETERS menu, you can adjust:
The duration of the pulse Active state time (1),
The duration between two pulses Inactive state time (2),
Illustration:

Zelio_FBD_Standart_Functions_21

Parameter lock
Locking prevents modification of the parameters of the locked function block from the front panel of the logical module using the PARAMETERS menu.
A Function
The following diagram shows the operation of the timer in function A:

Zelio_FBD_Standart_Functions_22
C Function
The following diagram shows the operation of the timer in function C:
Zelio_FBD_Standart_Functions_23
NOTE: Each pulse on the Command input of the Timer block resets the current value to 0.

A/C Function
The following diagram shows the operation of the timer in function A/C:
Zelio_FBD_Standart_Functions_24
Reset
The following diagram illustrates the operation of the timer when the Reset input is activated:
Zelio_FBD_Standart_Functions_25
TIMER BW (Pulses on Edges)

At a Glance
The Pulses on Edges function is used to create a pulse on an input edge for the duration of a cycle on the output.
The types of input edges taken into account can be the following:
Rising edge,
Falling edge,
Rising and falling edge.
The input and output of the function are of the Discrete type.
Access
This Zelio_FBD_Standart_Functions_26 function is accessible from the FBD function bar.
Parameters
From the Parameters window, you can select the type of edge to be processed on the input:
Inactive to Active for a rising edge,
Active to Inactive for a falling edge,
Inactive to Active and Active to Inactive for a rising and falling edge.

TIMER Li (Cyclic Timing)
Description
The Cyclic timing function generates pulses (flashes) on the input rising edge.
The duration of the pulse and the duration between each pulse can be set.
Access
The Zelio_FBD_Standart_Functions_27 function is accessible from the FBD function bar.
Inputs/Outputs
The function uses a Discrete Command input.
The function provides:
A Discrete-type Output,
A copy of the setpoint for the pulse duration (1),
The current value of the duration of the output active state (1),
A copy of the setpoint for the duration between two pulses (1),
The current value of the duration for which the output is in the inactive state (1),
A copy of the setpoint (1):
For the number of flashes,
Or for the duration of the flash.
The current value (1):
Of the number of flashes since the first pulse,
Or of the duration of flashes since the first pulse.
(1) these integer values are displayed in Simulation and Monitoring mode.
If the Command input is inactive, the Output is inactive and the current values are set to 0.
Parameters
In the programming software
From the Parameters window, you can adjust:
On time: value between 0...32767,
Off time value between 0...32767,
Number of flashes: value between 0...32767,
Duration of flashes: value between 0...32767,
The selection for Continuous flashing.
The Latching parameter, if selected, enables processing to be restarted at the point where it stopped following a power failure.
From the front panel
From the PARAMETERS menu, you can adjust:
The duration of the pulse Active state time (1),
The duration between two pulses Inactive state time (2),
The counting setpoint corresponds to either a duration or a number of pulses (3).
Zelio_FBD_Standart_Functions_28
Parameter lock
Locking prevents modification of the parameters of the locked function block from the front panel of the logical module using the PARAMETERS menu.
Latching
To ensure latching after a power failure in the smart relays, check the Latching box in the parameters window.
Continuous flashing
The figure below illustrates function operation with continuous flashing:
Zelio_FBD_Standart_Functions_29
Number of Flashes
The figure below illustrates function operation with a defined number of flashes:
Zelio_FBD_Standart_Functions_30
Duration of flashes
The figure below illustrates function operation with predefined flash duration:
Zelio_FBD_Standart_Functions_31

Оставьте комментарий

Ваш e-mail не будет опубликован. Обязательные поля помечены *