Status words/bits plc pfc200

Hello everyone,
We currently have several PFC200 PLCs within a control architecture that communicates via Modbus with a SCADA system. We need to monitor the CPU’s RUN and STOP status.

Does WAGO have reserved registers for this?
Is there a library available that allows us to detect or monitor this status?

Thank you for your response.

Good afternoon, but this can be tracked inside the program.
Tell me you use Codesys or eCockpit ?

Look here, you can use the REST API of the Device.

WAGO Device REST-API WDx/WDA - Hardware and Linux - WAGO Open Source Community

it provides nearly everything which is available inside the Web Based Management.
try it out.

Provide Diagnostic from the Program will only work the Codesys Runtime is in RUN.
so i recommend to use the REST API to get all relevant Diagnostic Information of the Linux OS, including PLC Data.

But the REST API will only work for Devices PFC100 Generation 2, CC100, PFC200 Generation 2, Edge Controller and TP600 with a FW >= Index 28.

3 Likes

In Codesys 2.3 runtime there are special registers, which work without running PLC program:

register 4160 - PLC Status 0-run, 1-stop
register 8208 - firmware version
register 8209-8210 - PLC model

In e!COCKPIT runtime:

register 64013 - PLC Status 2-run, 1-stop

In Codesys 3.5 runtime (FW>22) special registers are not available, so when program is stopped, you will receive modbus timeout response (unfortunately this is a feature of this version of codesys), but:

  • FW>=28, following @Alexander_Landfried you can use REST API
  • I can find some workarounds:
    1. if you can ping, but there is no response from modbus - program stopped
    2. for PFC200 G2/TP600/EDGE you can run some Docker container which cyclically runs /etc/config-tools/get_run_stop_switch_value (script return value “run” or “stop”) and show this info in modbus TCP server on different port

Let us know which version of controller (750-8202 (PFC200 G1) or 750-8212 (PFC200 G2)) and which runtime (codesys 2.3/e!COCKPIT/Codesys 3.5) are you working with

1 Like

Récupération des infos d’un contrôleur - WagoAppPLCInfos_FR

CODESYS 3

WagoAppPLCInfos_FR est une bibliothèque CODESYS 3 permettant de récupérer les informations générales relatives à un contrôleur ainsi que d’un contrôleur disposant d’une interface GSM intégré.

Les blocs fonctionnels suivants sont disponibles