Did you read the manual for 8202?
9.5.3 PLC Status Register
Register 0x1040 provides the status (state) that the controller is currently in.
1 = PLC running − PLC status is RUNNING.
2 = PLC stopped − PLC status is STOPPED.
9.6.1 Diagnostics for the MODBUS Master
The status of the PLC, or of the control system, can be queried by the MODBUS
master by reading the WAGO-specific register 0x1040 – “PLC Status” using
MODBUS services FC3 (Read Holding Registers) or FC4 (Read Input Registers).
The WAGO-specific register 0x1040 – “PLC Status” is explained in the Section
“PLC Status Registers”.