Siemens 6AV6651-7KA01-3AA4 - S7-1200 + KTP400 Basic Starter Kit 6AV6651-7KA01-3AA4 Manuel D’Utilisation

Codes de produits
6AV6651-7KA01-3AA4
Page de 364
Programming made easy 
 
6.3 Powerful instructions make programming easy 
 
Easy Book 
100
 
Manual, 03/2014, A5E02486774-AF 
In FBD programming, the contact networks of LAD are represented by AND (&), OR (>=1), 
and exclusive OR (x) box networks where you can specify bit values for the box inputs and 
outputs. You may also connect to other logic boxes and create your own logic combinations. 
After the box is placed in your network, you can drag the "Insert binary input" tool from the 
"Favorites" toolbar or instruction tree and then drop it onto the input side of the box to add 
more inputs. You can also right-click on the box input connector and select "Insert input". 
Box inputs and output can be connected to another logic box, or you can enter a bit address 
or bit symbol name for an unconnected input. When the box instruction is executed, the 
current input states are applied to the binary box logic and, if true, the box output will be true. 
6.3.2 
Compare and Move instructions 
The Compare instructions perform a comparison of two values with the same data type.    
Table 6- 1 
Compare instructions 
Instruction 
SCL 
Description 
LAD: 
 
out := in1 = in2; 
out := in1 <> in2; 
out := in1 >= in2; 
out := in1 <= in2; 
out := in1 > in2; 
out := in1 < in2; 
 
Equals (==):The comparison is true if IN1 is equal to 
IN2 
 
Not equal (<>):The comparison is true if IN1 is not 
equal to IN2 
 
Greater than or equal to (>=):The comparison is true if 
IN1 is greater than or equal to IN2 
 
Less than or equal to (<=):The comparison is true if 
IN1 is less than or equal to IN2 
 
Greater than (>):The comparison is true if IN1 is 
greater than IN2 
 
Less than (<):The comparison is true if IN1 is less 
than IN2 
FBD: 
 
 
1
  For LAD and FBD: The contact is activated (LAD) or the box output is TRUE (FBD) if the comparison is TRUE, 
The Move instructions copy data elements to a new memory address and can convert from 
one data type to another. The source data is not changed by the move process.        
●  MOVE copies a data element stored at a specified address to a new address. To add 
another output, click the icon next to the OUT1 parameter. 
●  MOVE_BLK (interruptible move) and UMOVE_BLK (uninterruptible move) copy a block of 
data elements to a new address. The MOVE_BLK and UMOVE_BLK instructions have an 
additional COUNT parameter. The COUNT specifies how many data elements are 
copied. The number of bytes per element copied depends on the data type assigned to 
the IN and OUT parameter tag names in the PLC tag table.