SmartAXIS Touch User's Manual
12-21
2 Ladder Program
12
Control Func
tion
DIV
Division
When input is on, 16- or 32-bit data designated by
source device S1 is divided by 16- or 32-bit data
designated by source device S2. The quotient is set to
16- or 32-bit destination device D1, and the remainder is
set to the next 16- or 32-bit data. Data type F does not
generate a remainder.
When S2 is 0 (dividing by 0), the special internal relay
M8004 (ladder program execution error) is turned on.
YES
Data type W or I:
S1 ÷ S2
→
D1 (quotient), D1+1 (remainder)
Data type D or L:
S1·S1+1 ÷ S2·S2+1
→
D1·D1+1 (quotient),
D1+2·D1+3 (remainder)
Data type F:
S1·S1+1 ÷ S2·S2+1
→
D1·D1+1 (quotient)
INC
Increment
When input is on, one is added to the 16- or 32-bit data
designated by device S/D and the result is stored to the
same device.
YES
Data type W or I:
S/D + 1
→
S/D
Data type D or L:
S/D·S/D+1 + 1
→
S/D·S/D+1
DEC
Decrement
When input is on, one is subtracted from the 16- or 32-
bit data designated by device S/D and the result is stored
to the same device.
YES
Data type W or I:
S/D – 1
→
S/D
Data type D or L:
S/D·S/D+1 – 1
→
S/D·S/D+1
ROOT
Root
When input is on, the square root of device designated
by S1 is extracted and is stored to the destination
designated by D1.
The square root is calculated to two decimals, omitting
the figures below the second place of decimals, and
multiplied by 100.
YES
Data type W:
When input is on, the square root of device designated
by S1·S1+1 is extracted and is stored to the destination
designated by D1·D1+1.
The square root is calculated to two decimals, omitting
the figures below the second place of decimals, and
multiplied by 100.
Data type D:
When input is on, the square root of device designated
by S1·S1+1 is extracted and is stored to the destination
designated by D1·D1+1.
Data type F:
SUM
Sum
Calculate the total of designated data, depending on the
calculation option.
ADD:
When input is on, N blocks of 16- or 32-bit data starting
at device designated by S1 are added and the result is
stored to device designated by D1. S2 specifies the
quantity of data blocks.
XOR:
When input is on, N blocks of 16-bit data starting at
device designated by S1 are XORed and the result is
stored to device designated by D1. S2 specifies the
quantity of data blocks.
YES
Symbol
Name and Diagram
Function
Interrupt
Program
Execution
REP
**
D1(R)
*****
S2(R)
*****
DIV(*)
S1(R)
*****
S / D
*****
INC(*)
S / D
*****
DEC(*)
S1
*****
ROOT(*)
D1
*****
S1
→
D1
S1·S1+1
→
D1·D1+1
S1·S1+1
→
D1·D1+1
S2
*****
S1
*****
SUM(*)
ADD/XOR
D1
*****
Содержание SmartAXIS Touch FT1A Series
Страница 1: ...FT1A Series FT9Y B1390 4 SmartAXIS Touch User s Manual ...
Страница 22: ...Contents Preface 21 SmartAXIS Touch User s Manual ...
Страница 240: ...6 Using Library Screens 4 36 SmartAXIS Touch User s Manual ...
Страница 416: ...2 Multi State Lamps 8 26 SmartAXIS Touch User s Manual ...
Страница 558: ...9 Calendar 9 142 SmartAXIS Touch User s Manual ...
Страница 668: ...6 Timer 11 52 SmartAXIS Touch User s Manual ...
Страница 754: ...4 Using Data and Detected Alarms 13 34 SmartAXIS Touch User s Manual ...
Страница 792: ...4 Using the Data 14 38 SmartAXIS Touch User s Manual ...
Страница 810: ...4 Using the Data 15 18 SmartAXIS Touch User s Manual ...
Страница 870: ...3 Text Manager 19 16 SmartAXIS Touch User s Manual ...
Страница 924: ...6 Important Notes 20 54 SmartAXIS Touch User s Manual ...
Страница 1036: ...5 User Communication 22 74 SmartAXIS Touch User s Manual ...
Страница 1092: ...2 Monitoring on the Touch 24 26 SmartAXIS Touch User s Manual ...
Страница 1142: ...2 Word Devices 27 18 SmartAXIS Touch User s Manual ...
Страница 1186: ...2 Analog Cartridge 29 34 SmartAXIS Touch User s Manual ...
Страница 1194: ...3 Handling Problems 30 8 SmartAXIS Touch User s Manual ...