Input Description

../_images/2e51f664e38a4b960a33139000eba54e1

MCX_BinaryReference_dc provides the possibility to read the encoder position related to an edge on a binary input. The master position is given by an encoder, which must be available, if the cam switch functionality is to be used.

The values for getBinary and Mode_On_Off are individually changeable online.

The Function Block is related to a binary input. It saves the actual encoder position as refPosition when an edge of the binary input has been received. Accuracy would be best when the cam is configured at a low number. The output refNum is counted up for each trigger, so this would also provide an information when more edges are triggered then could be transferred to the PLC.

  • Mode_Off_On=FALSE
  • a negative edge is used as trigger
  • Mode_Off_On=TRUE
  • a positive edge is used as trigger

The refPosition can be

  • getBinary=TRUE
  • the binary value as directly received  from the encoder
  • getBinary=FALSE
  • the angle-value (position is converted by the angle resolution)

The values are transferred multiplexed, so it may take some time to receive them.

../_images/91833e4ee38a4be40a33139000eba54e1

The actual state of the binary input can also be monitored with the output “state”.

Enable

Data_Type Default_Value Range Unit
BOOL - - -

The Function Block is activated with Enable TRUE. With Enable=FALSE, the respective cam will be switched off immediately.

getBinary

Data_Type Default_Value Range Unit
BOOL - - -

getBinary selects if a binary value or angle value should be triggered.

Mode_Off_On

Data_Type Default_Value Range Unit
BOOL - - -

Mode_off_on selects if a positive or negative edge will be used as trigger.

CamNumber

Data_Type Default_Value Range Unit
WORD - 1…32 -

Number of the cam: this number runs from 1..32. The parameter cam_To_Track[0..31] must be used to map the cam to the available digital outputs. A configuration tool must be used for setting the cam_To_Track.

csdc

Data type: CSDCX_REF_TYPE

The 2 elements in_csdc and out_csdc of csdc must be initialized with the beginning address of the input data area and the output data area to facilitate proper function of the cam.