5 Function blocks
5.33 TB, table function
266 Control Relay easy800 11/11 MN04902001Z-EN www.eaton.com
Entering a value in the table
When the function block is active, the current value at the double word input
at TB..I1 is entered in the table every time there is a rising edge at the
WP coil. Coils TB..EN and TB..WP can be actuated simultaneously with a
rising edge.
Each new table entry is entered behind the previous one until the sixteenth
entry is reached. Immediately after the value of TB..I1 is transferred, this
value is output TB..QV. Output TB..QN is incremented by 1 and then supplies
the current number of table entries.
If the maximum number of 16 table entries is reached, no more data is
transferred to the table and signal contact TB..TF closes. If you wish to make
more table entries, read values from the table beforehand or clear the entire
table with a rising edge at the RE coil.
A rising edge at the RE coil causes:
• The value at output TB..QN to be set to 0.
• The signal contact TB..TE to close.
• The signal contact TB..TF to open.
Reading out the table
The TB..RF and TB..RL coils are used to control whether you are reading out
from the start or end of the table.
A rising edge at the RF coil (Read First) removes the first table entry (FIFO
function) and outputs it at the output TB..QV. A rising edge at the RL coil
(Read Last) removes the last table entry (LIFO function) and outputs it at
TB..QV.
With each output of a table entry the signal at output TB..QN is reduced by 1.
Example
An operator determines the work required for a particular workpiece, creates
a production code for it and writes it in a table.
The workpieces reach the machining stations in this order. When the
workpiece is changed, the stations read the required production steps from
the table.
As soon as the table has reached 16 entries, the function block disables entry
by the operator.
Memory
112 + per 4 Byte/Constant at function block input
Cycle time [μs]
easy800 standard easy800-SWD
No entry 12