Configuration
Contents
1 Communications:
Allen Bradley 1.1 (Ethernet / IP):
1.2 UDP Simple:
1.3 Modbus TCP:
Communication Managers:
A process for each device or device group for which is required to communicate. All managers are configured through an XML file, you must have the following format:
\<dispositivos_xml>
\<cantidad>2\</cantidad>
\<nombre>cliente1\</nombre>
\<dispositivo id="user-content-1">
.
.
.
\</dispositivo>
\<dispositivo id="user-content-2">
.
.
.
\</dispositivo>
\<dispositivos_xml></dispositivos_xml></dispositivos_xml>
Quantity: Number of devices configured in the file.
Name: ID of the host.
Device: Set each of the devices.
Allen Bradley (Ethernet / IP):
Process responsible for the protocol to communicate using Ethernet / IP.
#> as-clx_ethip -d config.xml
d file: File XML device configuration.
Where the configuration file must have the following format:
\<dispositivo id="user-content-1" modelo="AB">
\<nombre>allen_bradley_clx_ethip\</nombre>
\<marca>AB\</marca>
\<tipo>LGX\</tipo>
\<habilitado>1\</habilitado>
\<comunicacion>
\<tipo>CNET\</tipo>
\<direccion>192.168.117.61\</direccion>
\<ruta>1,1\</ruta>
\<nodo>
\</nodo></comunicacion>
\<grupos>
\<tiempo_muestreo>100\</tiempo_muestreo>
\<lectura>
\<registro direccion="Entrada_Flotante" tipo="REAL_" escritura="1">
\</registro></lectura>
\</grupos></dispositivo>
Communication Manager
id: Serial number of the device.
model: Reference to the type of device communication.
name: unique name that will serve as swap.
Brand: Manufacturer of the device.
Type: Family or device model.
enabled: Enables the administrator to begin data acquisition.
communication: Parameters of the protocol.
type: type of communication protocol.
address: Name or IP address of the device.
path: Settings backplane where the processing module.
node: Not used.
groups: not used.
tiempo_muestreo: data acquisition time in milliseconds.
Reading: List of records to buy.
address: Name Tag on the device.
type: Type of Tag in the device.
Writing: It permitted the writing of this tag in the device.
Simple UDP:
Process that serves multiple UDP connections (multiple devices simultaneously), with a packet format agreed between the device and the communications manager.
#> as-clx_ethip_ps -d config.xml -o 1
d file: File XML device configuration.
o listener: listeners group configured in the XML file.
Where the configuration file must have the following format:
\<dispositivo id="user-content-2" modelo="AB">
\<nombre>allen_bradley_clx_ethip_ps\</nombre>
\<marca>AB\</marca>
\<tipo>LGX\</tipo>
\<habilitado>1\</habilitado>
\<comunicacion>
\<tipo>PaS\</tipo>
\<direccion>
\<ruta>
\<nodo>
\</nodo></ruta></direccion></comunicacion>
\<grupos>
\<oyente id="user-content-1" puerto="9003" longitud="200">
\<cantidad>1\</cantidad>
\<equipo nombre="uno" ip="192.168.117.60" puerto_escritura="17000">
\<registro direccion="Entrada_Flotante" tipo="REAL_" indice="54" longitud="4" escritura="0">
\</registro></equipo>
\</oyente>
\</grupos>
\<tiempo_muestreo>100\</tiempo_muestreo>
\<lectura>
\</lectura></dispositivo>
Modbus TCP:
Process responsible for communicating with other devices using Modbus TCP.
#> as-mbtcp -d config.xml
d file: File XML device configuration.
Where the configuration file must have the following format:
\<dispositivo id="user-content-1" modelo="MB">
\<nombre>modbus_tcp\</nombre>
\<marca>
\<tipo>
\<habilitado>1\</habilitado>
\<comunicacion>
\<tipo>MBTCP\</tipo>
\<direccion>192.168.117.58\</direccion>
\<puerto>502\</puerto>
\<nodo>66\</nodo>
\</comunicacion>
\<grupos>
\<tiempo_muestreo>300\</tiempo_muestreo>
\<lectura>
\<registro direccion="000001" tipo="BIT_" cantidad="40" tmb="OCOILS_" escritura="1">
\<registro direccion="100001" tipo="BIT_" cantidad="40" tmb="ICOILS_" escritura="0">
\<registro direccion="300001" tipo="CORTO_" cantidad="40" tmb="IREG_" escritura="0">
\<registro direccion="400001" tipo="CORTO_" cantidad="40" tmb="HREG_" escritura="1">
\</registro></registro></registro></registro></lectura>
\</grupos></tipo></marca></dispositivo>
id: Serial number of the device.
model: Reference to the type of device communication.
name: unique name that will serve as swap.
Brand: Not used.
type: Not used.
enabled: Enables the administrator to begin data acquisition.
communication: Parameters of the protocol.
type: type of communication protocol.
address: Name or IP address of the device.
Port: Port where you will hear the Master Modbus.
node: node in the network of Modbus devices.
groups: not used.
tiempo_muestreo: data acquisition time in milliseconds.
Reading: List of records to buy.
address: Address of Tag in the device.
type: Type of Tag in the SCADA.
Quantity: Number of records to read in a query.
tmb: Tag Type in the Modbus device.
Writing: It permitted the writing of this tag in the device.