response of the interface (EVT), sending the requested in-
*
formation.
[g]
Address of the output (0 - 3).
[v]
The meaning of the parameter depends on the [flag].
Indicates the state of the output for SET, GET (in this case, the parameter
must be fixed, <0>) and RSP, EVT responses:
<0>
contact open.
<1>
contact closed.
Tells the operator which error has been detected, according to the follow-
[yy]
ing table:
<00>
no error.
<01>
command syntax error.
<02>
command timeout.
<03>
collision on "BusT4".
<04>
device not found.
<05> - <0f>
not used; available for future developments.
<10>
command execution error.
<11>
protocol data error.
<12>
encoder data error.
<13>
position data error.
<14>
"Bluebus" error.
<15>
memory error.
<16> - <ef>
not used; available for future developments.
<f0>
"BusT4" not operating.
<f1> - <ff>
not used; available for future developments.
Example – command to close the first relay, and the response:
"OUT > 0 1"
"OUT # 0 1"
"OUT * 0 1"
Example – query the status of output 2:
"OUT < 1 1"
"OUT # 1 0"
"OUT * 1 0"
7 – English
7.6 - Relay command: NET
NET commands modify or read the network configuration of the TTPCI interface. The pro-
tocol is as follows:
"NET [flag] [ip] [sm] [gw] [yy]"
[flag]
in combination with NET, defines the type of message sent:
SET command, used to configure the device's network
>
parameters.
GET command, used to query the device's network pa-
<
rameters.
response of the interface (RSP) confirming reception of
#
the GET / SET command.
response of the interface (ERR) indicating a syntax error in
!
the GET / SET command.
response of the interface (EVT), sending the requested in-
*
formation.
IP address (the default is 192.168.100.001; for GET commands use
[ip]
0.0.0.0).
Subnet mask (the default is 255.255.255.000; for GET commands use
[sm]
0.0.0.0).
Gateway (the default is 192.168.100.254; for GET commands use
[gw]
0.0.0.0).
Tells the operator which error has been detected, according to the follow-
[yy]
ing table:
<00>
no error.
<01>
command syntax error.
<02>
command timeout.
<03> - <09>
not used; available for future developments.
<10>
command execution error.
<11> - <fe>
not used; available for future developments.
Example – configuring the device's network parameters.
net > 192.168.100.101 255.255.255.000 192.168.100.254
net # 192.168.100.101 255.255.255.000 192.168.100.254
net * 192.168.100.101 255.255.255.000 192.168.100.254