CTEK Automation Control Application APN007 User Manual

Page 45

Advertising
background image

Application Note – Automation Control Application

APN007 25 July, 2014

40

Note on Remote Commands
Remote operations are those decisions and resulting actions that are distributed between two or
more SkyRouters in different physical locations connected over the cellular network. This release
contains a significant simplification of remote operations. Now all remote operations are reduced
to a single function providing the ability to remotely set the values of remote virtual input pins and
all types of output pins, both physical and virtual. This approach allows decisions to be made at
the site where the actually machinery will be turned on and off and therefore provides a higher
degree of reliability since the On/Off decisions have built-in retry capabilities.

Remote I/O - Set

Remote I/O - Set P1 P2 P3 P4 P5 P6

P1, P2 and P3 define the remote destination that is being set while P4 and P5 define the local
source

P1 = iP address of destination
P2 = i for input or o for output
P3 = pin number
P4 = i for input, o for output or u for user defined value
P5 = pin number or user defined value
P6 = net wait.

a) If P6 = 1 causes the remote operation to wait for a certain period of time for the

SkyRouter to get an IP address from the network.

b) If P6 = 0, do not wait for network. Instead simply assume that the network is available

and initiate the remote operation which will succeed if an address is available or fail if it is
not.

Example: Set a input pin 24 of IP address 166.155.12.12 to 1 after waiting for the network to
respond
Action: Remote I/O - Set
Parameters: 166.155.12.12 i 24 u 1 1

Example: Set output pin 18 at IP address 173.101.15.44 to the value of local input pin 4 without
waiting for the network
Action: Remote I/O - Set
Parameters: 173.101.15.44 o 18 i 4 0

Note On Timer/Counter
Timer/Counter is a value incrementing or decrementing at one second intervals. It is housed on a
numeric input or numeric output. If it is in an output it is non-volatile and if it is in an input it is
volatile. If it is in an output, the output can still be connected to an input. In either case the
thresholds of an input can then be used to make decisions based on the counter value or the
value can just be used to accumulate things like engine hours.

Advertising