DEC_TO_HEX_Dint
This function block converts DINT numeric input into a hexadecimal signed 2s complement STRING output
Parameters
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_INPUT | ||||
| B | Enable | BOOL | The function will continue to execute every scan while Enable is held high and there are no errors. | FALSE |
| V | DecimalNum | DINT | Input value to be converted. | DINT#0 |
| V | UpperCase | BOOL | If TRUE, the output string will contain upper case ASCII characters. If FALSE, the output string will contain lower case ASCII characters. | FALSE |
| VAR_OUTPUT | ||||
| B | Valid | BOOL | Indicates that the function is operating normally and the outputs of the function are valid. | |
| B | Error | BOOL | Set high if an error has occurred during the execution of the function block. This output is cleared when 'Execute' or 'Enable' goes low. | |
| E | ErrorID | UINT | If Error is true, this output provides the Error ID. This output is reset when 'Execute' or 'Enable' goes low. | |
| V | HexString | STRING | String containing the hexadecimal representation of DecimalNum. | |
| V | OutputByteArray | Yt_ByteArray8 | Byte array containing the same ASCII values as in the OutputString. | |
Error Description
See the
Function Block ErrorID List