
Programming S900–II Level 1
Version 2.2 |–>
IV – Programming instructions
38
01T01527_2
25.5.00
Checking an input’s status :
Choice : REVERSE (NORMAL is implicit)
Syntax : IN... (000 –> 255) or IN/....
0 –> 127 : local inputs
136 –> 143 : pendant inputs
144 –> 255 : remote inputs (on CAN or ASI network)
Status “1” (or “0”) of the input is awaited before going on to the next step. Several different inputs can
be checked at 0 or 1 in the same step.
Checking a bit’s status :
Choice : REVERSE (NORMAL is implicit)
Syntax : BIT... (000 to 127) or BIT/....
Status “1” (or “0”) of the bit is awaited before going on to the next step. Several different inputs can
be checked at 0 or 1 in the same step.
IV – 2. 3. Allocation and operation instructions
CNT instruction – Counter handling –
You have at your disposal :
16 standard counters (CNT 0000 –> 0015),
4000 stacking counters (see chapter V – 3. page 59).
In the main programs, 3 operations can be performed on the counters :
[ RST ] Counter reset to zero
[ + 1 ] Increment ; counter
(t)
= counter
(t–1)
+ 1
[ – 1 ] Decrement ; counter
(t)
= counter
(t–1)
– 1
RST.CNT 0001. Counter No. 01 is set to 0.
DEC.CNT 0015. Counter No. 15 is decremented.
INC.CNT 0013. Counter No. 13 is incremented.
Kommentare zu diesen Handbüchern