Nuestras marcas

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

Web de Schneider Electric España

Bienvenido a nuestra web
		
¿Cómo podemos ayudarle hoy?
Why does my Function Block not write values to variables assigned to VAR_IN_OUT pins in EcoStruxure Machine Expert HVAC?

Issue
The IEC61131-3 standard dictates that a function block should be able to both read from and write to VAR_IN_OUT class pins.
When I am creating a Function Block in EcoStruxure Machine Expert HVAC for the Modicon M172 PLC, and in my function block, I am writing to a VAR_IN_OUT pin, the value of the variable is not changed when I run the program.

Product Line
EcoStruxure Machine Expert - HVAC

Cause
By default, VAR_IN_OUT in EcoStruxure Machine Expert HVAC works by Value and not by Reference.

Resolution
In order to enable it to function by reference you have to enable the proper option in Application > Project Options menu.

Programming Tab > Project dropdown > Options

In the Project options dialog popup, navigate to the Code generation tab.

Tick the checkbox row named "VAR_IN_OUT by reference (IEC standard=yes)" shown below.
(Note that it is not set to ticked by default)

Project options > Code generation tab

Schneider Electric España

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