Home > Forum > IP monitoring (HW-group) > Logical I / O management I / O module controller from ethernet
- This topic has 0 replies, 1 participant and was last updated 15 years, 3 months ago da Sergio Bertana.
-
AuthorPost
-
January 22, 2009 at 10: 55 am #34767Sergio BertanaAdministrator Forum
The module is connected to the ethernet network I / O controller must be configured with the correct IP address, use the UDP config procedure of the Hercules utility which allows you to scan the network, identify all connected HW-Group modules and set the IP address. Once the IP address has been assigned, the module can be reached by any telnet program; opening the connection on port 99 the message is displayed:
******* WEB51 remote setup ******
WEB51>
Sending carriage return , the complete configuration menu is displayed, each line shows a parameter identification letter, the parameter and the current value:
=========== IP Setup ============
I: Address 192.168.0.41
J: Port 23
M: Mask 255.255.255.0
...
To change the value of the parameters, the identification letter must be defined followed by the new value and then . To change the port address, for example, you need to send the command: J24, the new value is stored in the non-volatile memory of the device.
Access to I / O is done using the NVT (Network Virtual Terminal) protocol on the port defined in IP Setup. Warning! no other connection with the module must be opened, then close any telnet connection on port 99.
The NVT protocol provides a command frame of the type
All data are in hexadecimal and assume the following value:
: 0xFF, Interpret as command
: 0xFA, Subnegotiation parameters
: 0xF0, End of subnegotiation parameters
The command frame for reading digital inputs is: FF FA 2C 32 00 FF F0
The response frame is: FF FA 2C 96 xx FF F0
Where instead of xx the status of the digital inputs is returned (The value is complemented), the 8 bits represent the status of the inputs. Bit 0: (0 = input 0 active, 1 = input 0 not active), Bit 1: (0 = input 1 active, 1 = input 1 not active), etc.
The command frame for activating the outputs is: FF FA 2C 32 1x FF F0
The command frame for deactivating the outputs is: FF FA 2C 32 2x FF F0
Where the output on which to operate must be indicated instead of x.
The response frame is: FF FA 2C 97 xx FF F0
Where instead of xx the status of the digital outputs is returned, the 8 bits represent the status of the outputs. Bit 0: (0 = output 0 not active, 1 = output 0 active), Bit 1: (0 = output 1 not active, 1 = output 1 active), etc.
Warning! for safety the connection is automatically closed after 50 sec of inactivity, to remedy this it is necessary to set to on parameter K: Keep connection in the setup, or send an NVT command of NOP. The frame is: FF F1 -
AuthorPost
- You must be logged in to reply to this topic.