7. LW2 Programmers’ Reference
MMX8x4-HT series – User's Manual
92
Applied firmware package: v1.2.2b5 | LDC software: v2.2.1
7.4.9.
Batch Switch Outputs
The device is capable of switching multiple outputs exactly at the same time. To do this, the normal switch
commands have to be used. If the switch commands arrive at the device with less than 10 milliseconds
delay, the commands are collected and changes the output connections together.
Required circumstances:
▪
Switch commands have this format: {<in>@<out>}{<in>@<out>}
▪
The delay between two ‘}’ characters must be below 10 milliseconds
▪
No other command or junk character is allowed between switch commands
▪
Affected outputs must not be locked
If any of the above circumstances fail, then the commands will be processed separately and the output
connections will change one by one.
ATTENTION!
The delay timeout applies for the receiving time of characters. Please note that if LAN
connection is used then the network may cause additional delays. This could result that batch switching
does not occur. Below example shows a command that resulted batch switching:
One by one commands
{02@01 V}
(O01 I02)CrLf
{05@04 V}
(O04 I05)CrLf
Batch commands
{02@01}{05@04}
(O01 I02)CrLf
(O04 I05)CrLf
7.5. Network Configuration
7.5.1. Query the Current IP Status
IP address settings can be queried as follows.
#dhcp #ipaddress
#network
Command and Response
{IP_STAT=?}
(IP_STAT=
<type>
;
<ip_address>
;
<subnet_mask>
;
<gateway_addr>
)CrLf
Parameters
Identifier
Parameter description
Parameter values
<type>
Assignment of the IP address
0:
static
1:
dynamic (DHCP)
<ip_addr>
IP address
(four decimal octets separated by dots)
<subnet_mask>
Subnet mask
(four decimal octets separated by dots)
<gateway_addr>
Gateway address
(four decimal octets separated by dots)
Example
{ip_stat=?}
(IP_STAT=0;192.168.0.100;255.255.255.0;192.168.0.1)
The device has a static (fix) IP address: 192.168.0.100; the subnet mask is 255.255.255.0, the gateway
address is 192.168.0.1.
7.5.2.
Set the IP Address
IP address can be set as follows.
Command and Response
{IP_ADDRESS=
<type>
;
<ip_address>
}
(IP_ADDRESS=
<type>
;
<ip_address>
)CrLf
Parameters
See the previous section.
Example
{ip_address=0;192.168.0.110}
(IP_ADDRESS=0;192.168.0.110)
INFO:
The IP address can be queried by typing the “ip_address=?” command. The response contains the
fix IP address that is stored in the device even if DHCP is enabled; in this case, this IP address is not valid.
7.5.3.
Set the Subnet Mask
Subnet mask can be set as follows.
Command and Response
{IP_NETMASK=
<subnet_mask>
}
(IP_NETMASK=
<subnet_mask>
)CrLf
Parameters
See the
section.
Example
{ip_netmask=255.255.255.0}
(IP_NETMASK=255.255.255.0)
INFO:
The subnet mask can be queried by typing the “ip_address=?” command. The response contains
the fix IP subnet mask that is stored in the device even if DHCP is enabled; in this case, this IP subnet
mask is not valid.