With the use of the IoConfig_Globals.drivename.wCommunicationState errors that have a values > 1000 can occur.
These are often not immediately obvious, which errors are hidden behind it.
These numbers (>1000) come from the fact that in our state-machine, in a certain state an error has occurs.
Then the "known state +1000" is copied into wCommunicationState.
Thus it can be determined in which step/state the error has occurred.
See also....
- Our Codesys Online Help (OLH) Website
- OLH: "wCommunicationState"
- OLH: CODESYS SoftMotionLight - Drive Configuration
- OLH: The Codesys Components of CODESYS SoftMotion