Output Address Space
The output address space contains data that is sent from the WMX3 engine and received by the servos and I/O modules in the network. This data is updated every communication cycle, and may be associated with the operation of valves, LED indicators, output voltages, and other outputs.
The method of mapping data that is sent to the servos and I/O modules to the output address space depends on the platform. See the discussion for the platform in use inside this manual. By default, output addresses are mapped in the order that the servos and I/O modules are connected to the network, but it is also possible to map specific data in specific servos and I/O modules to specific output addresses.
The size of the output address space is maxIoOutSize bytes.
All bytes in the output address space contain 0 when the WMX3 engine is started.
Output addresses that are not mapped to any servo or I/O module in the network can be read from and written to, but the data will not be sent to any servo or I/O module in the network.
If the initial output is set for one or more bytes of the output address space, these bytes will be set to the specified initial values whenever communication is started or restarted. For additional information, see Initial Output.
Data in the output address space can be written or read using the functions in the Io class.
Expedited I/O functions read or write data from the output address space faster, but have restrictions. See Expedited I/O Functions for additional information.
Analog I/O functions read or write 1 to 4 bytes from the output address space as a signed or unsigned integer. See Analog I/O Functions for additional information.
The following table lists the functions that write data to the output address space.
Function |
Expedited |
Analog |
Remarks |
|---|---|---|---|
No |
No |
This function writes one bit to the output address space. |
|
This function writes one byte to the output address space. |
|||
This function writes multiple bytes to the output address space. |
|||
Yes |
This function writes one byte to the output address space as a signed integer. |
||
This function writes one byte to the output address space as an unsigned integer. |
|||
This function writes two bytes to the output address space as a signed integer. |
|||
This function writes two bytes to the output address space as an unsigned integer. |
|||
This function writes four bytes to the output address space as a signed integer. |
|||
This function writes four bytes to the output address space as an unsigned integer. |
|||
Yes |
No |
This function writes one bit to the output address space. |
|
This function writes one byte to the output address space. |
|||
This function writes multiple bytes to the output address space. |
|||
Yes |
This function writes one byte to the output address space as a signed integer. |
||
This function writes one byte to the output address space as an unsigned integer. |
|||
This function writes two bytes to the output address space as a signed integer. |
|||
This function writes two bytes to the output address space as an unsigned integer. |
|||
This function writes four bytes to the output address space as a signed integer. |
|||
This function writes four bytes to the output address space as an unsigned integer. |
The following table lists the functions that read data from the output address space.
Function |
Expedited |
Analog |
Remarks |
|---|---|---|---|
No |
No |
This function reads one bit from the output address space. |
|
This function reads one byte from the output address space. |
|||
This function reads multiple bytes from the output address space. |
|||
Yes |
This function reads one byte from the output address space as a signed integer. |
||
This function reads one byte from the output address space as an unsigned integer. |
|||
This function reads two bytes from the output address space as a signed integer. |
|||
This function reads two bytes from the output address space as an unsigned integer. |
|||
This function reads four bytes from the output address space as a signed integer. |
|||
This function reads four bytes from the output address space as an unsigned integer. |
|||
Yes |
No |
This function reads one bit from the output address space. |
|
This function reads one byte from the output address space. |
|||
This function reads multiple bytes from the output address space. |
|||
Yes |
This function reads one byte from the output address space as a signed integer. |
||
This function reads one byte from the output address space as an unsigned integer. |
|||
This function reads two bytes from the output address space as a signed integer. |
|||
This function reads two bytes from the output address space as an unsigned integer. |
|||
This function reads four bytes from the output address space as a signed integer. |
|||
This function reads four bytes from the output address space as an unsigned integer. |