Y_IM_MainRTUDriver
Parameters
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_IN_OUT | ||||
| B | ModbusInput | Yt_ByteArray60 |
Array of 60 bytes with actual values of the CP040 module. To have a consistent data access, please define the type of the connected variable as "IN Port".
|
|
| B | ModbusOutput | Yt_ByteArray60 | Array of 60 bytes with set values for the CP040 module. To have a consistent data access, please define the type of the connected variable as "OUT Port". | |
| VAR_INPUT |
|
|||
| B | Enable | BOOL | The function will continue to execute every scan while Enable is held high and there are no errors. | FALSE |
| VAR_OUTPUT | ||||
| B | Valid | BOOL | Actual state of data exchange with CP040 module, TRUE=Enabled, FALSE=Disabled. | |
| B | Busy | BOOL | Establishing communication with CP040 module is in progress | |
| E | Error | BOOL | The Error output is set to TRUE if an error has occurred during the operation of the function block. The output is cleared when the Execute or Enable input becomes FALSE | |
| E | ErrorID | UINT | The ErrorID output provides the identifier of the error when there is an active error in the function block execution. The output is cleared when the Execute or Enable input becomes FALSE | |
Notes
- Y_IM_MainRTUDriver can handle up to 10 axes and 10 generic devices simultaneously
- The Enable signal causes subsequent axes / devices to be queried for communication requests.
- Axes / generic devices communication is done in sequence. There are no priorities. This means that for the same axis / device, a telegram can only be sent when all devices before have been checked for communication requests
- If a communication error is detected, the block will resume communication on its own and transmit the error number to the corresponding axis Y_MotionAxisDriver
- The rising edge of the enable signal causes a one-time reset of CP040 module
- Failure to communicate with CP040 module will result in a block initialization error
Drive parameterization
H5: Modbus Communication,the most important of which are- H5-01 (16#0425) - Drive Node Address
- H5-02 (16#0426) - Communication Speed Selection