7. LW3 Programmers' Reference
Querying the Condition Trigger Counter
ç GET·/EVENTS/E<loc>.ExternalConditionTriggerCount
Testing an Action
ç CALL·/EVENTS/E<loc>:ActionTest(1)
Variable-Management
Value Assignment
SET·/CTRL/VARS/V<loc>.Value=<value>
ç
Addition and Subtraction (Add Method)
ç CALL·/CTRL/VARS/V<loc>:add(<operand>;<min>;<max>)
Addition and Subtraction (Cycle Method)
ç CALL·/CTRL/VARS/V<loc>:cycle(<operand>;<min>;<max>)
Value Change with Intervals (Case)
CALL·/CTRL/VARS/V<loc>:case(<min> <max>
ç
Scanning and Storing
ç CALL·/CTRL/VARS/V<loc>:scanf(<path>.<property>;<pattern>)
Reformatting a Value
ç CALL·/CTRL/VARS/V<loc>:printf(<prefix>%s<postfix>)
Ethernet Port Configuration
Setting the DHCP State
SET·/MANAGEMENT/NETWORK.DhcpEnabled=<dhcp_status>
ç
Changing the IP Address (Static)
SET·/MANAGEMENT/NETWORK.StaticIpAddress=<IP_address>
ç
Changing the Subnet Mask (Static)
SET·/MANAGEMENT/NETWORK.StaticNetworkMask=<netmask>
ç
Changing the Gateway Address (Static)
SET·/MANAGEMENT/NETWORK.StaticGatewayAddress=<gw_address>
ç
Applying Network Settings
ç CALL·/MANAGEMENT/NETWORK:ApplySettings()
Ethernet Tool Kit
Device Filter Based on MAC Address
SET·/MANAGEMENT/MACFILTER.MACaddress<loc>=<MAC_address>;<receive>;<send>;<name>
ç
LW2 Control Port Blocking
SET·/MANAGEMENT/SERVICEFILTER.Lw2Enabled=<port_mode>
ç
<val>;)
Applied firmware package: v1.6.0b19 | LDC software: v2.5.13b5
MMX4x2 series – User's Manual
HTTP Port Blocking
SET·/MANAGEMENT/SERVICEFILTER.HttpEnabled=<port_mode>
ç
HTTP Post Receiving Blocking
SET·/MANAGEMENT/SERVICEFILTER.HttpEnabled=<port_mode>
ç
Powering on a Computer over Ethernet (Wake-on-LAN)
ç CALL·/MEDIA/ETHERNET:wakeOnLan(MAC_address)
Setting the Host Name
SET·/MANAGEMENT/NETWORK.HostName=<unique_name>
ç
Ethernet Message Sending
Sending a TCP Message (ASCII-format)
ç CALL·/MEDIA/ETHERNET:tcpMessage(<IP_address>:<port_no>=<message>)
Sending a TCP Text (ASCII-format)
ç CALL·/MEDIA/ETHERNET:tcpText(<IP_address>:<port_no>=<text>)
Sending a TCP Binary Message (HEX-format)
ç CALL·/MEDIA/ETHERNET.tcpBinary(<IP_address>:<port_no>=<HEX_message>)
Sending a UDP Message (ASCII-format)
ç CALL·/MEDIA/ETHERNET:udpMessage(<IP_address>:<port_no>=<message>)
Sending a UDP Text (ASCII-format)
ç CALL·/MEDIA/ETHERNET:udpText(<IP_address>:<port_no>=<text>)
Sending a UDP Binary Message (HEX-format)
ç CALL·/MEDIA/ETHERNET:udpBinary(<IP_address>:<port_no>=<HEX_message>)
HTTP Messaging
Setting the Target IP Address
SET·/CTRL/HTTP/C1.ServerIP=<IP_address>
ç
Setting the TCP Port
SET·/CTRL/HTTP/C1.ServerPort=<port_no>
ç
Setting the Target Path
SET·/CTRL/HTTP/C1.File=<path>
ç
Setting the Message Header
SET·/CTRL/HTTP/C1.Header=<header_text>
ç
Sending a Post Message
ç CALL·/CTRL/HTTP/C1:post(<body_text>)
Sending a Put Message
ç CALL·/CTRL/HTTP/C1:put(<body_text>)
136
Need help?
Do you have a question about the MMX4x2 Series and is the answer not in the manual?