Questions tagged [pfc200]

4 questions
1
vote
1 answer

Casting function block

I'm using Wago PFC200 for my home automation. I got base function block: FUNCTION_BLOCK ABSTRACT Room and two the interface: INTERFACE IBlinds - BlindsUp - BlindsDown and ILights -TurnOffLights -TurnOnLights My room's instances looks like…
Dawid Rutkowski
  • 2,658
  • 1
  • 29
  • 36
1
vote
1 answer

Is the whole function block really stored in RETAIN memory?

In the CodeSys manual we can read that: "If you declare a local variable in a function block as RETAIN, CODESYS stores the complete instance of this function block in the Retain range (all data of the function block); however, only the declared…
Dawid Rutkowski
  • 2,658
  • 1
  • 29
  • 36
0
votes
1 answer

Usage of VAR RETAIN PERSISTENT

I'm using WAGO PLC PFC200 in my home automation project. I've plenty of POUs, each for one room. Each room implements IRoom interface and uses base POU for common logic like turning off all lights. For lights management, I'm…
Dawid Rutkowski
  • 2,658
  • 1
  • 29
  • 36
0
votes
0 answers

Table of pointers

I'm using Wago PLC - PFC200 - for home automation. I already did most of the things like lights or blinds automation. Recently I decided to do some refactoring and I started to think that such PLC is not a PC with a garbage collector and it might be…
Dawid Rutkowski
  • 2,658
  • 1
  • 29
  • 36