This opcode allows changing the current assignment of the measurement channels to the physical measurement inputs. It is mainly implemented for backward compatibility to older systems. It is not required for new applications.
Overview
Opcode: 0x11
Name: opcWCA
Function: Write channel assignment
Parameter type: String
DLL-Function
Request string to the Irinos-System
Example:
#T1,1,0,1,1;T2,2,0,1,2;T3,3,0,1,3#
Assignment (1. part of the example):
T1,1,0,1,1 |
[a] Channel name (ASCII string, max. 4 characters) |
T1,1,0,1,1 |
[b] Logic channel number in ascending order |
T1,1,0,1,1 |
[c] Number of the Irinos-Box (Box address) |
T1,1,0,1,1 |
[d] Modul-ID. Always 1. For backward compatibility with older systems. |
T1,1,0,1,1 |
[e] Physical channel number within the Irinos-Box [c]. Starts with 1. |
Response string from the Irinos-System
#0# Success
#-1# Channel name (e.g. T1) is larger than 4 characters
#-2# Invalid logic channel number
#-3# Invalid Irinos-Box number (Box address)
#-4# Invalid module ID
#-5# Physical channel number invalid
#-6# Not enough parameters
#-7# No semicolon
#-99# General syntax error of the request string
Comments
During startup of the Irinos-System, the channel assignment list is created automatically. This list is dynamic, it adapts automatically to the available Irinos components.
Via this opcode the generated list can be overwritten.
The string length of a single data frame is limited. For Irinos-Systems with many measurement channels (> 32) writing the channel assignment must be split up into multiple steps. It is suggested to write a maximum of 32 logic channels at once.
Example: 42 logic channels shall be written. First write the logical channels 1 - 32 and afterwards the logical channels 33 - 42.
The logical channel numbers need to be written in ascending order.