Download - Service, Support
Transcript
Encoder signals and their evaluation 7.1 Types of encoders The following table shows the encoder structure as it appears in the declaration table of the application FB. This provides the status information and software controls of the encoder. Table 7- 3 Address Example Declaration Table for the Application FB, Encoder Structure Declaration Name Type Comment Static section: This definition is position-specific. The encoder is a structure that has a fixed number of elements. The names cannot be changed, but the size of Cur_Val and Load_Val must be set to INT or DINT according to which size of encoder is configured. 38.0 stat Encoders STRUCT Encoder structure. Do not change. +0.0 stat Direction BOOL Status: Direction 0 = up count, 1 = down count +0.1 stat Home BOOL Status: 1 = encoder is at home position. +0.2 stat Homed BOOL Status: 1 = Home was adopted since power up +0.3 stat Overflow BOOL Status: 1= overflow (displayed for the duration of one cycle) +0.4 stat Underflow BOOL Status: 1= Underflow (displayed for 1 cycle) +0.5 stat SSIFrame BOOL Status: SSI frame error or power loss +0.6 stat SSIDataRead BOOL y Status: 0 = SSI encoder has not yet shifted valid data, 1 = data available +0.7 stat Open_Wire BOOL Status: 1 = Encoder has open wire +1.0 stat Hold BOOL Hold software input for incremental encoder +1.1 stat Reset BOOL Reset software input for incremental encoder +1.2 stat Load BOOL Load software input for incremental encoder +2.0 stat Cur_Val DINT Current value for incremental encoder: DINT for 32-bit encoder, INT for 16-bit encoder +6.0 stat Load_Val DINT Load value for the encoder: DINT or INT =10.0 stat END_STRUCT FM 352-5 high-speed Boolean processor Operating Manual, 05/2011, A5E00131318-04 171