GWY-800-B Features
19
Doc No: UMAN\GWY-800-B\0706
REVISION 0
4.2
Repeat Cycle
User can control Block execution by using the Repeat Cycle field. This number decides whether the
Block will be executed in each cycle. Larger the number lower the priority of the Block. Range for Repeat
Cycle setting is 1-99.
Repeat Cycle = 1 ………… Highest priority
Repeat Cycle =99 …………Lowest priority
Repeat cycle is important when using Gateway in Master - Master mode. If Gateway is used in Master - Slave
mode, Repeat Cycle field should be kept as ‘1’.
Repeat cycle defines the number of times a Block will be skipped while executing Blocks in a sequential
manner. Block will not be executed for [Repeat Cycle - 1] cycles. So if Repeat Cycle for a Block is 1, it will
be executed in each cycle whereas if Repeat Cycle is 2, then this Block will NOT be executed in alternate
cycles.
For example, suppose Blocks are defined with following Repeat Cycles:
Block #1
Repeat Cycle = 1
Block #2
Repeat Cycle = 2
Block #3
Repeat Cycle = 3
Block #4
Repeat Cycle = 4
After power up, Cycles will be executed as follows:
Cycle 1:
Block #1
Block #2
Block #3
Block #4
Cycle 2:
Block #1
Cycle 3:
Block #1
Block #2
Cycle 4:
Block #1
Block #3
Cycle 5:
Block #1
Block #2
Block #4
4.3
Control Word
Another way of controlling Block execution is by use of the Control Words. 16 control words i.e. 255 control bits are
available by which user can control 255 blocks. O
th
Control bit corresponds O
th
bit of control word 1, .., 16
st
Control bit
corresponds 0
st
bit of control word 2,.. , 255
th
Control bit corresponds 15
th
bit of control word 16. By default 0 to 255
control bits are mapped to 1 to 256 blocks. User can change value of the control bit. Control Word can be enabled or
disabled in Gateway Configuration. Normally Control Word is disabled for a New project. It can be enabled just by
clicking on check box in the setup software. Control Word can be chosen from any of the Devices connected.
If the Control Word field is enabled, for the control bit choosen in the project block, accordingly the
number of words in the control field should be taken. For example, if 36
th
Control bit is choosen to control the
block then number of words in the Control Word field should be 3.
Number of control bits / 16 = Number of control words.
If Number of control bits % 16 != 0 (Non-zero so add 1 in the number of words in the control field) then Number of
control words = Number of control words + 1