
I185 GB 06 15
LRX D01
72
AS current value is the result of compute. Parameters V1, V2, and V3 can be a constant or other function current value. The output coil will be
set to 1 when the result is overflow. The current value has no meaning at this time. But it will do nothing if the output coil is NOP. The output
coil will turn OFF when the result is right or the function is disabled.
The example below shows how to configure AS function.
Error output coil N01 will turn ON when the compute result is overflow.
1
2
3
4
5
6
AS (ADD-SUBTRACT)
The LRD includes a total of 31 AS instructions that can be used throughout a program. The ADD-SUB Addition and/or Subtraction function
enables simple operations to be carried out on integers. There are 6 parameters for proper configuration. The table below describes each
configuration parameter, and lists each compatible memory type for configuring AS.
Compute formula: AS = V1 + V2 – V3
1
2
3
4
5
6
Symbol
Description
1
AS current value ( -32768~32767)
2
V1 parameter ( -32768~32767)
3
V2 parameter ( -32768~32767)
4
V3 parameter ( -32768~32767)
5
Error output coil (M, N, NOP)
6
AS code (AS01~AS1F)