Action types – 2N M2M Solution 2N SmartCom - User Manual 1.9.0 User Manual
Page 121

121
Let us show you some syntax examples now.
AIN1>50 – the syntax will be marked true in case the value measured on AIN1 is
higher than 50.
– the syntax will be marked true in case the value measured on the
PUL2==2596
PUL2 counter is equal to the constant.
the syntax will be marked true in case the DIN1 value is true and the
DIN1&&CON3 –
reference condition is also true.
– the syntax will be marked true in case any value higher than 0 is measured on
!AIN2
the input.
– the syntax will be marked true in case the value measured on AIN1 is
AIN1<=AIN2
lower than the value measured on AIN2.
- the syntax will be marked true (i.e. network failure) in case PING failed or the IP
NFG
address was not obtained during the time set at at^scping="interval",
When the IP address is obtained, the state will be cancelled and the condition will
become FALSE.
Caution
If you use Negation, the parameter will be treated as a digital input! It
cannot be expected, for example, that if 50 is measured on AIN1, -50
can be obtained after negation.
To match two inputs use the absolute values obtained from the
converter (ADC 0 - 1020). Therefore, make sure that the two inputs
have been calibrated properly.
Action Types
Insert an action after the separator for the selected syntax.
SAVE
Enter SAVE to save the condition result into the terminal memory for later use.
Note
A typical condition saving AT command looks as follows:
At^scudf="add","AIN1>50:SAVE"
REL1
The action controls the relay 1 state.
REL2
The action controls the relay 2 state.
Note
A typical relay switching AT command looks as follows:
At^scudf="add","AIN1>50:REL1 r[1]"
SMS