SNAME("string")
SNAME("string")
Set PROFINET Station Name
The SNAME command is used to set a unique PROFINET station name. The setting is
nonvolatile. It can use up to 54 characters; the factory default is smc6dev01. It will set the
configuration change bit (Bit 1) returned by the ETH/RETH command (see below) if the Station
Name has changed from the previous value in EEPROM.
Use the following PROFINET name conventions:
l
Characters a-z (lowercase only, uppercase is not permitted)
l
Numbers 0-9, but cannot start with a number
l
No underscores or other special characters; the hyphen and period are permitted, but
not as the first or last character
l
No more than 127 characters total or 63 characters as a name component within the
device name (e.g., a character string between two periods); may be further limited by
your configuration software
l
Cannot be formatted as an IP address (dotted-decimal notation)
l
Cannot begin with the characters "port-nnn-", where "nnn" are three numeric characters
0-9 (e.g., port-735-)
IPCTL(function,"string")
Sets IP address, Mask, or Gateway
The IPCTL command is used to set the IP address, subnet mask or gateway. The setting is
nonvolatile. This command is not usually needed. Typically, the PLC will handle these settings
during PROFINET network initialization.
The possible function values are:
0: set IP address
1: set Mask
2: set Gateway
The "string" is formatted as an IP address, e.g., IPCTL(0,"192.168.0.10"). By default, these
values are set to 0 (i.e., "0.0.0.0").
=ETH, RETH
Get PROFINET error
The =ETH and RETH commands are used to assign/report errors and certain status
information for the PROFINET bus.
l
Assigned to a program variable: x=ETH(y)
l
As a report: RETH(y)
Refer to the following table for details.
Moog Animatics Class 6 PROFINET Guide Rev. D
Page 39 of 76
Содержание Animatics Class 6 SmartMotor
Страница 75: ......
Страница 76: ...PN SC80100007 001 Rev D...