Sensor Model | All |
Firmware Version | 5.x, 6.x |
SDK Version | n/a |
How can I activate or switch a Gocator job via Profinet?
To initiate a job switch, the "Command Register" of the Control Module must be configured to a value of 5, with the job-filename specified in the command parameters. The filename should be null-terminated.
Assign bytes 1 to 64 (Output layout "Legacy Alignment") or bytes 4 to 67 (Output layout "32-bit Alignment") for the null-terminated filename, allocating one filename character (ASCII-value) per 8-bit register, and include the null terminator character. The inclusion of the ".job" extension is optional. If the extension is absent, it will be automatically added to the file name.
For example you want to switch to a job named "MyJob3" and the output layout is set to 32-bit alignment, then set the following bytes of the control module to:
Byte | Value | Description |
0 | 5 | ASCII value of "0" |
4 | 77 | ASCII value of "M" |
5 | 121 | ASCII value of "y" |
6 | 74 | ASCII value of "J" |
7 | 111 | ASCII value of "o" |
8 | 98 | ASCII value of "b" |
9 | 51 | ASCII value of "3" |
10 | 0 | null terminating |
Note that the command is only executed on a change of the value of the command register. So keep the command register on a non existing command (e.g. 255) and shortly give it the value of the command you want to execute.
Comments
0 comments
Please sign in to leave a comment.