Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| en:software:qview:qview_6:qcl_library:vr10bintoswr [2017/02/06 16:47] – [Errcode] qem103 | en:software:qview:qview_6:qcl_library:vr10bintoswr [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== VR10BinToSWr ====== | ||
| + | |||
| + | **V = **// | ||
| + | |||
| + | **R = **//Reading function// | ||
| + | |||
| + | BINARY | ||
| + | |||
| + | The VR10BinToSWr function __converts a signed binary variable type in a Word type (word with sign)__. | ||
| + | |||
| + | ===== IMPLEMENTATION ===== | ||
| + | |||
| + | **VR10BinToSWr (array, index, return, errcode)** | ||
| + | |||
| + | Parameters: | ||
| + | |||
| + | ^IN/ | ||
| + | | IN | ARRGBL | ||
| + | | IN | GLOBAL | ||
| + | | OUT | GLOBAL | ||
| + | | OUT | GLOBAL | ||
| + | |||
| + | ==== Errcode ==== | ||
| + | |||
| + | After calling the function, ' errcode ' can take certain values, the meaning of these values is summarized below:\\ | ||
| + | 0: No error | ||
| + | |||
| + | === Example === | ||
| + | |||
| + | Transforms the value (binary) in an signed word value | ||
| + | |||
| + | <code QCL> | ||
| + | index = 1 | ||
| + | array[1] = 1 | ||
| + | array[2] = 80 | ||
| + | |||
| + | VR10BinToSWr (array, index, return, errcode) | ||
| + | |||
| + | ;On the return you will find : | ||
| + | ; return = 336 | ||
| + | </ | ||
| + | |||
| + | === Note === | ||