Extended Camswitch Library

Library file name: MCX_AC500_Vx.lib

All Function Blocks follow the same basic rules which are as follows:

  • The “Enable” enables the cam switch. It will be switched off immediately with Enable = FALSE and the respective output will be switched off.
  • Every Function Block has to be assigned to a certain cam switch by specifying the number at input CamNumber. CamNumber runs from 1..32.
  • Ever Function Block has to be assigned to a certain device. This is done by “csdc” which holds addresses of the devices process image
  • The “active” output indicates that the specific Function Block communicates with the device. A complete pulse ensures the data has been transferred
  • The “state” output indicates that the cam switch is “on” which means the output of the cam is on.
../_images/0b5945d9ccd686bb0a3313906f215ea8

Note

All function blocks of this library can only be executed in RUN mode of the Processor Module, not in simulation mode.

System Requirements

Following system requirements have to be fulfilled:

  • IEC 61131-3 editor 2.3.9.3 or later
  • SysExt_AC500_V10.lib or later
  • SysLibTime.lib Version 2.4.0.6 or later

Restrictions

  • Compensation time
    • The time is given in a resolution of µs, but the best achievable resolution is the cycle-time of the device (200 µs with 32 cams)
    • For times larger then 32767, the resolution will be increased internally. The user gives still a us-time in a DINT-value
    • Times which are larger then 524 ms will be transferred with a resolution of 512 µs. A compensation time up to 8 s could be reached.
  • Best achievable resolution is cycle-time of the device (80 µs / 100 µs / 200 µs).