Nuestras marcas

Impact-Company-Logo-English Black-01-177x54

Web de Schneider Electric España

Bienvenido a nuestra web
		
¿Cómo podemos ayudarle hoy?
A simple example of a READ_VAR application for an M340 or M580 PLC
Issue
Simple example of READ_VAR Ethernet communication for M340 or M580 PLC.

The Ethernet communications can be difficult to program using Unity, since they vary from PAC family to family. This is one of a series of example applications that presents each function block in a working version for the user to build on.


Product Line
M580
M340


Resolution
The attached application read_var.zef will write ten registers to another device. (The code for a server M340 is also attached. The M580 setup is similar).

The application consists of two sections, The first is an ST section in which variables are initialized. The second section, which is the example proper is a LD section which simply uses an ADDM block to feed the address to the READ_VAR function block. The main area of difficulty is the formatting of the address.

See the help in Unity Pro. In this example the format ‘NETWORK{SERVERIP.EN_US}’ is used; where NETWORK is the name given to the network associated with the client device (sender), and SERVERIP is the IP address of the server (target). In the example the IP address of the client is 192.168.1.23, The IP of the server is 192.168.1.30. These should be changed to suit your own addressing scheme. The application is annotated and should provide a start for the user of the READ_VAR block.

Schneider Electric España

Documentos adjuntos
read_var.zip [78.85 KB]
Explorar más
Rango:
Explorar más
Rango:

¿Necesitas ayuda?

  • Selector de productos

    Encuentra rápida y fácilmente los productos y accesorios adecuados para tus aplicaciones.

  • Pedir presupuesto

    Comienza tu consulta de ventas en línea y un experto se pondrá en contacto contigo.

  • ¿Dónde comprar?

    Encuentra fácilmente el distribuidor de Schneider Electric más cercano a ti.

  • Centro de ayuda

    Encuentra recursos de soporte para todas tus necesidades en un solo lugar.

  • Documentación de productos
  • Descargas de software
  • Selector de productos
  • Reemplazo de productos
  • Centro de ayuda y contacto
  • Encuentra nuestras oficinas
  • Pedir presupuesto
  • Dónde comprar
  • Closure of shop.se.com/es/es/ and shop.se.com/pro/es/es/
  • Carreras
  • Perfil corporativo
  • Denunciar una mala conducta
  • Accesibilidad
  • Sala de prensa
  • Inversores
  • EcoStruxure
  • Búsqueda de empleo
  • Blog
  • Política de privacidad
  • Aviso de Cookies
  • Condiciones de uso
  • Cambiar tu configuración de cookies