Hi all,
I would like to read the status of my ET200Sp interface modules / IO modules in my PLC program so that I can detect communication faults and individual I/O module faults. I will use this information to set respective alarms on my HMI and interlock my code.
I have a total of 7x IM155-6 PN ST interface modules with various digital I/O. The PLC is an S7-1214C
Am I correct to use the "ModuleStatus" instruction in my program? Or is there a better way to do this? I have set one "ModuleStatus" config up with the following parameters as a test:
LADDR = 283 (taken from my IM155 6 interface module properties, "hardware identifier" setting. (see attached image)
MODE = 5
When I download and tested, I get an error:
- the RET_VAL of 8092 (hex) -
"LADDR does not address an IO device or DP slave".
I am assuming the value needs to be format DEC? If I change the hardware identifier to something else, I get a different error:
- the RET_VAL of 8091 (hex) -
"Hardware identifier of the LADDR parameter does not exist. Check (for example, in the system constants) whether the value for LADDR exists in the project."
I would be grateful of any thoughts and recommendations.
Best regards
Justin
I would like to read the status of my ET200Sp interface modules / IO modules in my PLC program so that I can detect communication faults and individual I/O module faults. I will use this information to set respective alarms on my HMI and interlock my code.
I have a total of 7x IM155-6 PN ST interface modules with various digital I/O. The PLC is an S7-1214C
Am I correct to use the "ModuleStatus" instruction in my program? Or is there a better way to do this? I have set one "ModuleStatus" config up with the following parameters as a test:
LADDR = 283 (taken from my IM155 6 interface module properties, "hardware identifier" setting. (see attached image)
MODE = 5
When I download and tested, I get an error:
- the RET_VAL of 8092 (hex) -
"LADDR does not address an IO device or DP slave".
I am assuming the value needs to be format DEC? If I change the hardware identifier to something else, I get a different error:
- the RET_VAL of 8091 (hex) -
"Hardware identifier of the LADDR parameter does not exist. Check (for example, in the system constants) whether the value for LADDR exists in the project."
I would be grateful of any thoughts and recommendations.
Best regards
Justin