Output Description¶
DONE (done)
Data type: BOOL
Output DONE indicates the state of the job processing.
After completing or aborting the processing (due to an error), DONE is set to TRUE for one cycle. For that reason, the output always has to be considered together with output ERR. If ERR is TRUE, an error occurred. In this case, the error number can be read at output ERNO.
ERR (error)
Data type: BOOL
Output ERR indicates whether an error occurred during the Function Block processing.
This output always has to be considered together with output DONE. If DONE is TRUE and ERR is TRUE, an error occurred. In this case, the error number can be read at output ERNO.
ERNO
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
WORD | - | 0 … 65535 | - |
At output ERNO the identifier of an occurred error is provided. It is only valid when DONE and ERR is TRUE (see, error messages): Error Messages of the Function Block Libraries
ERNO1 (error number 1)
Data type: BYTE
Output ERNO1 provides an additional DPV1-specific error information in case that an error occurred during processing.
ERNO1 always has to be considered together with the outputs DONE, ERR and ERNO. The value applied at ERNO1 is only valid, if DONE = TRUE, ERR = TRUE and ERNO = 6036 HEX (24630 DEC).
ERNO1 of the DPV1 Function Blocks is encoded as follows. The upper nibble (the higher significant 4 bits) describes the error class, the lower nibble represents the error cause.
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Error class | Error code |
ERNO1 | Error class/Error code | |
DEC | HEX | |
0 | 0 | Reserved |
… | … | … |
159 | 9F | Reserved |
160 | A0 | 10 Application / 0 Read error |
161 | A1 | 10 Application / 1 Write error |
162 | A2 | 10 Application / 2 Error module |
163 | A3 | Reserved |
… | … | … |
167 | A7 | Reserved |
168 | A8 | 10 Application / 8 Version conflict |
169 | A9 | 10 Application / 9 Function not supported |
170 | AA | 10 Application / 10 Manufacturer-specific |
… | … | … |
175 | AF | 10 Application / 15 Manufacturer-specific |
176 | B0 | 11 Access / 0 Invalid index |
177 | B1 | 11 Access / 1 Invalid length of data to be written |
178 | B2 | 11 Access / 2 Invalid slot |
179 | B3 | 11 Access / 3 Type conflict |
180 | B4 | 11 Access / 4 Invalid range |
181 | B5 | 11 Access / 5 Status conflict |
182 | B6 | 11 Access / 6 Access denied |
183 | B7 | 11 Access / 7 Invalid value range |
184 | B8 | 11 Access / 8 Invalid parameter |
185 | B9 | 11 Access / 9 Invalid type |
186 | BA | 11 Access / 10 Manufacturer-specific |
… | … | … |
191 | BF | 11 Access / 15 Manufacturer-specific |
192 | C0 | 12 Resources / 0 Read conflict |
193 | C1 | 12 Resources / 1 Write conflict |
194 | C2 | 12 Resources / 2 Resource used |
195 | C3 | 12 Resources / 3 Resource not available |
196 | C4 | Reserved |
… | … | … |
199 | C7 | Reserved |
200 | C8 | 12 Resources / 10 Manufacturer-specific |
… | … | … |
207 | CF | 12 Resources / 15 Manufacturer-specific |
208 | D0 | Reserved |
… | … | … |
255 | FF | Reserved |
ERNO2 (error number 2)
Data type: BYTE
Output ERNO2 provides an additional DPV1-specific error information, if an error occurred during processing. ERNO2 always has to be considered together with the outputs DONE, ERR and ERNO.
The value applied at ERNO2 is only valid, if DONE = TRUE, ERR = TRUE and ERNO = 6036 HEX (24630 DEC).
The encoding of ERNO2 is completely manufacturer-specific.
DATA_LEN (data length)
Data type: BYTE
The output DATA_LEN displays the actual length (in bytes) of the data written to the slave.
DATA_LEN is only valid, if DONE = TRUE and ERR = 0.