
WORDs or WWORDs are not tested to
see if their capacity has been passed.
Comparison
(IF instruction)
For masking
Programming S900–II Level 1
Version 2.2 |–>
IV – Programming instructions
39
01T01527_2
25.5.00
SET instruction – Allocation –
The following variables can be set :
OUT
CNT BIT WORD
WWORD
For the CNT, WORD and WWORD, you can choose the following operators :
The arithmetic operators :
= Allocation of a value
+ Addition
– Subtraction
* Multiplication
/ Complete division (the remainder is not kept)
The logic operators :
= 2 operators are equal
> = Greater than or equal to
< = Less than or equal to
AND Logic AND
OR Logic OR
SET OUT 20. Output 20 is set to 1.
SET CNT 0011 = 0010_D. The decimal value 10 is set in the counter 0011.
SET WWRD 76 + 2. 2 is added to WWRD 76. This is an example of allocation.
SET CNT 7 – CNT 3. The value is given (CNT 7 – CNT 3) to CNT 7.
RST instruction – Resetting –
The following variable can be set :
OUT CNT BIT WORD
WWORD
RST OUT 20. Output 20 is set to 0.
RST BIT 100. Bit 100 is set to 0.
Kommentare zu diesen Handbüchern