MANUAL IM635
Command Operation
Page 28
SET NETSTAT
Function:
network status message events control
Syntax:
SET NETSTAT
enable
Argument(s):
enable
byte, 0-1 (or OFF/ON)
Remarks:
This function can be used to control the display of network status messages on the serial
console, including link up/down and port connect/disconnect messages. A value of 0 (or OFF)
disables messages, while any other value (or ON) enables them. The default setting is on.
Return Value: none
Example(s):
SET NETSTAT 1
// enables logging of network events to the console
Example NETSTAT messages:
**netstat: link up
**netstat: link down
**netstat: port 23: socket 2 connected to 10.0.0.101
**netstat: port 23: disconnected
IPCONFIG?
Function:
return network settings
Syntax:
IPCONFIG?
Argument(s): none
Remarks:
This query command returns the current network settings, including the IP address, subnet
mask, gateway address, DHCP enable, AutoIP enable, TCP server port, and the UDP server port.
Return Value: IP addr, netmask, gateway, DHCP enable, AutoIP enable, TCP port, UDP port
Example(s):
IPCONFIG?
10.100.103.80, 255.255.255.0, 0.0.0.0, 0, 0, 10001, 20000
6.6.
Macro Commands
The MACRO feature allows the user to create a series of commands that will be executed at unit power on
initialization. Currently, there are provisions for a single ‘poweron’ macro that can store up to 128 commands in
non-volatile memory. Macro strings can contain any valid command (including concatenated command strings),
up to the 128 character per command length restriction.
MACRO OPEN
Function:
opens macro storage for writing
Syntax:
MACRO OPEN
Argument(s): none
Return Value: none
MACRO CLOSE
Function:
finalizes macro
Syntax:
MACRO CLOSE
Argument(s): none
Return Value: none
MACRO ADD
Function:
adds (appends) command strings to the existing macro
Syntax:
MACRO ADD "
commandstr
"
Argument(s):
commandstr
command text, in quotes
Return Value: none
MACRO DELETE
Function:
deletes existing macro contents
Syntax:
MACRO DELETE
Argument(s): none
Return Value: none