Technical data

Technology functions
CPU 317T: Technology Functions
6-200 A5E00251798-03
6.5.2 FB 431 MC_CamSwitchTime - Time-based cam
Purpose
At the "MC_CamSwitchTime" technology function, you enable / disable time-
based or switching cams, and define their switching characteristics. The time-
based cams are set when the ON position is reached, and are reset when the
pulse period has expired.
In your cam configuration, you can define whether the switching positions are
based on setpoint or actual values.
All specified times refer to the timebase configured in S7T Config.
The current switching state of the cam is stored in the technology DB.
Applicable to
Time-based cam
Overriding commands
An MC_CamSwitchTIME command can only be canceled by a further
MC_CamSwitchTime command to the same technology object. An
MC_CamSwitchTime command does not cancel any other commands.
Input parameters
Parameter Data type Start value Description
CamSwitch INT 0 Number of the technology DB
Execute BOOL FALSE Operating state transition at the positive edge
OnPosition REAL 0.0 Switch-on position
Duration REAL 0.0 Pulse width (physical unit according to the "Time" unit
set at the corresponding axis)
Hysteresis REAL 0.0 Hysteresis
Delay REAL 0.0 Time-based offset of the switching points (Derivative
time)
Value 0: Advanced switching
Value 0: Delayed switching
Mode INT 2 Operating mode:
Value = 1: Cam locked
Value = 2: Cam enabled (output not inverted)
Value = 3: Cam enabled (output inverted
Value = 4: Cam permanently enabled
Direction INT 1 Effective direction of the cam:
Value = 1: Effective direction positive
Value = 2: Effective direction positive and negative
(i.e. effective direction is irrelevant)
Value = 3: Effective direction negative
Value = 4: Use last effective cam direction