Use of the system variables CAN_bTxCan2Synchronized_b and CAN_bTxCan3Synchronized_b

Question:
Which conditions must be adhered to when the system variables CAN_bTxCan2Synchronized_b and CAN_bTxCan3Synchronized_b are used?

Answer:
The system variables CAN_bTxCan2Synchronized_b and CAN_bTxCan3Synchronized_b serve for sending the telegrams from CAN channels 2 and 3 immediately after the generation of a Sync telegram. In order to achieve this behaviour the following aspects must be observed:
  • The CAN_Management must be inserted into the system control.
  • The device, where the system variables CAN_bTxCan2Synchronized_b and/ or CAN_bTxCan3Synchronized_b are inserted, must be configured as Sync transmitter. There is no response to Sync signals which are generated by other devices.
  • The system variables CAN_bTxCan2Synchronized_b and CAN_bTxCan3Synchronized_b must be called up in a time-controlled task.
  • The Sync cycle time must be identical to the CANx cycle time. The Sync cycle time is set via code C0369/0 (Sync TX Time). The CAN2/CAN3 transmitting cycle results from the setting under code C0356/2 for CAN2 and for CAN3 under code C0356/3 multiplied by the corresponding interval time of the task in which CAN2/CAN3 is called up.
  • Example: If the system variables CAN_bTxCan2Synchronized_b and CAN_bTxCan3Synchronized_b are called up in a time-controlled task with a run time of 2ms and if 10 ms is entered in code C0356/2 and C0356/3 the following CAN2/CAN3 transmitting cycle results: CAN2/CAN3 transmitting cycle = C0356/x*Task run time = 10 ms * 2 ms = 20 ms. Thus, 20 ms are to be entered under code C0369/0 for the Sync TX time.

URL for linking this AKB article: https://www.lenze.com/en-de/go/akb/200703911/1/
Contact form