Interface with the PLC program
(Original Document)
General
Although it is independent, the processing of the electronic cam module is controlled by the sequential program of the PLC processor.
The electronic cam module benefits from:
States are read and commands written via the PLC sequential program using language objects associated with the module: %I, %Q, %M, etc accessible via mnemonics.
Illustration of exchanges
The following diagram illustrates the various exchanges between the electronic cam module and the PLC processor.
Description of the data exchanged
The following table describes the main data that is exchanged.
Type of data
Description
The recipe groups together the data required for the module to control the machine for a series of parts. The recipe can be modified or completely changed by the PLC application. All this information is contained in the %MW PLC words in the memory zone reserved for the module.
It contains the:
  • cam descriptors: cam type, threshold values…
Statuses
This data is used to control the electronic cam application in order to supervise, diagnose, or perform operations on the other elements of the application. It contains the values:
  • of the states of the physical inputs
  • of the position reading (angle and number of turns)
  • of the parts counter
  • of the states of the tracks and the outputs
  • of any faults
Commands
This data is used to control the electronic cam application from the PLC processor program to perform operations on the operating modes, enable the functions, force the outputs, etc.
It contains the commands:
  • enabling the functions: recalibration, capture, position counting
  • direct commands on the following functions: recalibration, capture, parts counting
  • enabling cams and tracks
  • forcing outputs
  • masking events
Event
Activates the PLC processor event task. The module transmits data to the PLC processor regarding:
  • the source of the event
  • the angle values and number of turns which have been captured