56
SI-INTERBUS User Guide
Issue Number: 1
If an error occurs, an error message is returned, with codes to indicate the reason for
failure (see
Control Techniques defined service error codes
Example
This example reads the value from the Post Ramp Reference (Pr
2.001
) using the
READ service with the following arguments:
Index = 0x5002
Sub-index = 1
If the read is successful, the response message would contain the data value.
If the service is unsuccessful, the error information will be returned (see
Control Techniques defined service error codes
).
8.3.3.2 WRITE object
Index:
Menu
Sub-index:
Parameter
The WRITE object is used to send a data value to a parameter within the drive.
Four data bytes are written to this object. If the write is successful, a success response
will be returned.
Table 8-22 PCP WRITE object data bytes
If an error occurs, an error message is returned, with codes to indicate the reason for
failure (see
Control Techniques defined service error codes
Example
This example writes the value 200 (rpm) to the Preset Reference 1 (Pr
1.021
) using the
WRITE service with the following arguments:
Index = 0x5001
Sub-index = 21
Data = 200
If the write is successful, the success response will be returned.
If the service is unsuccessful, the error information will be returned. See
Control Techniques defined service error codes
.
Any scaling required of the data (i.e. to account for any decimal places the parameter
may have) will be handled by the SI-Interbus module.
Parameter 0 (Pr
MM.000
) cannot be accessed directly as the sub-index cannot be set to
a value of 0. Access to parameter 0 is provided via virtual parameter Pr
61.01
.
NOTE
NOTE
Data Byte
Data Byte Order
1
High byte
2
Mid-high byte
3
Mid-low byte
4
Low byte
Parameter 0 (Pr
MM.000
) cannot be accessed directly as the sub-index cannot be set to
a value of 0. Access to parameter 0 is provided via virtual parameter Pr
61.01
.
NOTE
NOTE