beautypg.com

Configuration for udfb 2: ra_encoderfdbk – Rockwell Automation 2080 Micro800 Digital and Analog Plug-in Modules User Manual

Page 95

background image

Rockwell Automation Publication 2080-UM004B-EN-E - December 2013

87

Quickstart Appendix B

• If FBEN is True and the user starts the feedback process from previous

Stop state, the function block will not be reinitialized. It will resume count
from previous accumulator value.

• IF FBEN is False, then all outputs are cleared and accumulator is cleared.

When FBEN goes True again , the HSC will be reinitialized.

Configuration for UDFB 2: RA_EncoderFDBK

1.

Launch Connected Components Workbench and open the HSC project
you have downloaded from the Sample Code Library.

2.

Import the downloaded RA_EncoderFDBK into this project.
Note that the UDFB comes with the following input and output variables.

NOTE: This UDFB will get the positioning information of a motion axis
based on pulses counted from the encoder.

External encoder Differential/
Open Collector type

Encoder
Feedback

Input and Output Parameters

Parameter

Type

Data
Type

Description

FBEN

INPUT

BOOL

Function block Enable input

SlotID

INPUT

UINT

Plug-in slot number.
Slot ID = 1…5 (starting with the far left slot 1)

HomePos

INPUT

REAL

Home position.
Same value indicated in MC_Home instruction.