NS

Network Setting

NS


Command Group: Communication

Access:

Network interfaces:

RW

CANopen

MODbus

NS - Network Setting

PROFIbus


Synopsis:
CommandResponse
GetNSNS:<Value>
SetNS <Value>OK (or ERR)
Valid forMin. valueMax. value
151.181    
152.181    
162.181    
179.181    
181.181    
64.181    
64.184    



NS Network Setting for H&B Devices.

The NS command can display or set any implemented networking parameter of the Device.
Since the IO types have different parameters the parameter fields are also different.

Note that when writing to any writeable parameter the new value must be stored using the WP command.
Any previous value will be lost and the changes made takes effect on next Device restart.

All devices uses 2 or 3 parameters:
First parameter is the Interface (P0). 0=SerialDevice, 1=CanDevice, 2=EthDevice, 3=ProfiDevice. - (Omitted for LDM64 before V=3.00).
Second Parameter is the parameter number (P1..P7), see the table below. On LDB_xx the parameters P1 and P2 are exchanged.
Third parameter is the new parameter value, if given. Else the value are displayed.

Reading P0 returns the device ID

Generally defined parameters:
P\T SerialDevice CanDevice EthDevice ProfiDevice
P0   0   1   2   3
P1 Serial Speed Can Address    
P2 Serial Address Can Speed IPv4 Address Profibus Address
P3 Serial Settings Heartbeat mac[47...32]  
P4 Transmit Delay Nodeguard mac[31...00]  
P5   Lifetime    
P6   TPDO1 Decimator    
P7        

Defined parameters LDM64 (Before IV=‘3.00’):
P\T CanDevice
P0   (1) Omitted on LDM64
P1 Can Speed
P2 Can Address
P3 Heartbeat
P4 Nodeguard
P5 Lifetime
P6 TPDO1 Decimator
P7  

Accessing the parameters via Serial protocol:
To Show the parameter value: NS [Interface][Param]
To set a new parameter value: NS [Interface][Param] [New Value]
- Interface is of the P0 values 0..3.
- Param is the parameter nr. 0..7.
Example:
NS 0 0 <cr>   - Shows the ID of the Device.
NS 1 1 <cr>   - Shows the CAN Speed.
NS 1 2 <cr>   - Shows the CAN network address.
NS 1 2 3 <cr>   - Set the CAN network address to 3.
NS 1 4 1200 <cr>   - Sets the CAN Nodeguard time to 1200.

Accessing the parameters via Modbus protocol:
Register 2072h selects the interface 0..3 (on WCN122 the IO board)
Register 2073h selects the parameter 0..15.
Register 207Ah (2-register read or write) provides access to the parameter value selected by 2072h and 2073h.


Can Device parameters



Ethernet Device parameters

PROFIBUS Device parameters

Serial Device parameters
  - bit 0 controls parity: 1=enabled.
  - bit 1 controls parity type: 0=odd, 1=even.
  - bit 6 is the address use: 0=ignore address, 1=address must match, see OP command
  - bit 7 controls the duplex mode: 0=RS422 (4-wire), 1=RS485 (2-wire).
  - bit 15..8 is the protocol used: 0= plain ASCII, 1= ModbusRTU.