Infosys在阅读器中打开 / AI 翻译

EL3255 | 5 Channel Potentiometer Measurement with Sensor Supply · 0 次阅读

Limit evaluation, index 80n0:07/08

If the value exceeds or falls below these values, which can be entered in the indices 0x80n0:13 and 0x80n0:14, then the bits in the indices 0x60n0:03 and 0x60n0:05 are set accordingly. The indices 0x80n0:07 or 0x80n0:08 serve to activate the limit value monitoring. The limit function can be inverted by SwapLimitBits in index 0x80n0:0E.

Output Limit n (2-bit):

SwapLimitBits setting

Value

TRUE (default setting)

  • 0: not active
  • 1: value > limit value
  • 2: value < limit value
  • 3: Value is equal to the limit value

FALSE

  • 0: not active
  • 1: value < limit value
  • 2: value > limit value
  • 3: Value is equal to the limit value
Limit evaluation, index 80n0:07/08 1:

Linking in the PLC with 2-bit values

The limit information consists of 2 bits. Limitn can be linked to the PLC or a task in the System Manager.

  • PLC:
    IEC61131-PLC contains no 2-bit data type that can be linked with this process data directly. For transferring the limit information, define an input byte (e.g. see Fig. Input byte definition) and link the limit to the VariableSizeMismatch dialog, as described in section Note about the 1-byte status of earlier EtherCAT Terminals.
  • Limit evaluation, index 80n0:07/08 2:Fig.146: Input byte definition
  • Additional task
    2-bit variables can be created in the System Manager.
Limit evaluation, index 80n0:07/08 3:Fig.147: Linking of 2-bit variable to additional task

Channel 1; Limit 1 and Limit 2 enabled, Limit 1 = 5000 (corresponding to ~15% control), Limit 2 = 15000 (corresponding to ~45%)

Input channel 1

Index 0x6000:03

Index 0x6000:05

4500

0x02hex, (Limit 1, limit value undershot)

0x02hex, (Limit 2, limit value undershot)

5000

0x03hex, (Limit 1, limit value reached)

0x02hex, (Limit 2, limit value undershot)