Danfoss Input Function Blocks Operating guide

User Manual

PLUS+1® GUIDE Software

PLUS+1 Function Block Library—Input

Function Blocks

www.danfoss.com

User Manual

PLUS+1® Compliant Function Block Library—Input Function Blocks

Revision history

Table of revisions

 

 

 

 

 

 

 

Date

Changed

Rev

 

 

 

 

 

February 2019

Updated calibration and deadband images

0102

 

 

 

 

 

February 2019

Rebranding

0101

 

 

 

 

 

May 2016

Updates for new library version.

CA

 

 

 

 

 

March 2011

 

AB

 

 

 

 

2 | © Danfoss | February 2019

11062082 | AQ00000274en-000102

User Manual

 

 

PLUS+1® Compliant Function Block Library—Input Function Blocks

 

Contents

 

 

Risk Reduction

 

 

 

Design, Test, and Secure to Reduce Risks................................................................................................................................

5

 

Design...................................................................................................................................................................................................

5

 

Test.........................................................................................................................................................................................................

5

 

Secure...................................................................................................................................................................................................

6

FNR_Direction Function Block

 

 

Inputs....................................................................................................................................................................................................

7

 

Outputs................................................................................................................................................................................................

7

 

Function Block Connections.........................................................................................................................................................

9

 

Fault Logic...........................................................................................................................................................................................

9

 

Identical Function Blocks Need Different Namespace Values to Successfully Compile.........................................

9

 

Change Namespace Value.....................................................................................................................................................

10

 

IEC 61508-3 Annex D Supplemental Information..............................................................................................................

11

Multi_Dig_In Function Block

 

 

 

Inputs..................................................................................................................................................................................................

12

 

Outputs..............................................................................................................................................................................................

13

 

Function Block Connections......................................................................................................................................................

14

 

Status Logic......................................................................................................................................................................................

15

 

Fault Logic........................................................................................................................................................................................

15

 

Example 1—Slct is T......................................................................................................................................................................

15

 

Example 2—Slct is F......................................................................................................................................................................

16

 

Identical Function Blocks Need Different Namespace Values to Successfully Compile......................................

16

 

Change Namespace Value.....................................................................................................................................................

17

 

IEC 61508-3 Annex D Supplemental Information..............................................................................................................

18

Sensor_2Pt Function Block

 

 

 

Inputs..................................................................................................................................................................................................

19

 

Outputs..............................................................................................................................................................................................

20

 

Function Block Connections......................................................................................................................................................

21

 

Status Logic......................................................................................................................................................................................

22

 

Fault Logic........................................................................................................................................................................................

22

 

Calibration and Fault Values......................................................................................................................................................

22

 

Deadband Values...........................................................................................................................................................................

23

 

Identical Function Blocks Need Different Namespace Values to Successfully Compile......................................

24

 

Change Namespace Value.....................................................................................................................................................

25

 

IEC 61508-3 Annex D Supplemental Information..............................................................................................................

26

Sensor_3Pt Function Block

 

 

 

Inputs..................................................................................................................................................................................................

27

 

Outputs..............................................................................................................................................................................................

28

 

Function Block Connections......................................................................................................................................................

29

 

Status Logic......................................................................................................................................................................................

30

 

Fault Logic........................................................................................................................................................................................

30

 

Calibration and Fault Values......................................................................................................................................................

30

 

Deadband Values...........................................................................................................................................................................

31

 

Identical Function Blocks Need Different Namespace Values to Successfully Compile......................................

32

 

Change Namespace Value.....................................................................................................................................................

33

 

IEC 61508-3 Annex D Supplemental Information..............................................................................................................

34

Sensor_2Pt_AC Function Block

 

 

Inputs..................................................................................................................................................................................................

35

 

Outputs..............................................................................................................................................................................................

36

 

Configuration Settings.................................................................................................................................................................

36

 

Function Block Connections......................................................................................................................................................

38

 

Status Logic......................................................................................................................................................................................

39

 

Fault Logic........................................................................................................................................................................................

39

 

Calibration and Fault Values......................................................................................................................................................

39

 

Deadband Values...........................................................................................................................................................................

40

 

Calibration Windows....................................................................................................................................................................

41

© Danfoss | February 2019

11062082 | AQ00000274en-000102 | 3

User Manual

 

PLUS+1® Compliant Function Block Library—Input Function Blocks

 

Contents

 

Identical Function Blocks Need Different Namespace Values to Successfully Compile......................................

42

Change Namespace Value.....................................................................................................................................................

43

IEC 61508-3 Annex D Supplemental Information..............................................................................................................

44

Sensor_3Pt_AC Function Block

 

Inputs..................................................................................................................................................................................................

45

Outputs..............................................................................................................................................................................................

46

Configuration Settings.................................................................................................................................................................

46

Function Block Connections......................................................................................................................................................

48

Status Logic......................................................................................................................................................................................

49

Fault Logic........................................................................................................................................................................................

49

Calibration and Fault Values......................................................................................................................................................

49

Deadband Values...........................................................................................................................................................................

50

Calibration Windows....................................................................................................................................................................

51

Identical Function Blocks Need Different Namespace Values to Successfully Compile......................................

52

Change Namespace Value.....................................................................................................................................................

53

IEC 61508-3 Annex D Supplemental Information..............................................................................................................

54

Freq_to_RPM Function Block

 

Inputs..................................................................................................................................................................................................

55

Outputs..............................................................................................................................................................................................

55

Function Block Connections......................................................................................................................................................

56

Status Logic......................................................................................................................................................................................

56

Fault Logic........................................................................................................................................................................................

56

Identical Function Blocks Need Different Namespace Values to Successfully Compile......................................

57

Change Namespace Value.....................................................................................................................................................

57

IEC 61508-3 Annex D Supplemental Information..............................................................................................................

58

Freq_to_Speed Function Block

 

Inputs..................................................................................................................................................................................................

59

Outputs..............................................................................................................................................................................................

59

Function Block Connections......................................................................................................................................................

61

Status Logic......................................................................................................................................................................................

61

Fault Logic........................................................................................................................................................................................

62

Identical Function Blocks Need Different Namespace Values to Successfully Compile......................................

62

Change Namespace Value.....................................................................................................................................................

62

IEC 61508-3 Annex D Supplemental Information..............................................................................................................

64

4 | © Danfoss | February 2019

11062082 | AQ00000274en-000102

User Manual

PLUS+1® Compliant Function Block Library—Input Function Blocks

Risk Reduction

Design, test, and secure applications that you develop to reduce risks of personal injury and equipment damage.

Design, Test, and Secure to Reduce Risks

Applications created with PLUS+1® GUIDE typically control equipment such as tractors, cranes, and harvesters.

Using heavy, powerful, and mobile off-road equipment always involves the risk of personal injury and equipment damage, even when this equipment is operating under normal operating conditions. Abnormal operating conditions greatly increase the risk of personal injury and equipment damage.

The PLUS+1® program has no automatic protections against these risks. The tool has no protection against the risks that result from bugs in the tool software, errors in the tool manual, or incompatibilities between software versions of the tool.

You must:

Design your application to reduce these risks.

Test your application to reduce these risks.

Secure your application against unauthorized changes in its operating parameters to reduce these risks.

Design

As you design your application, you must include the fault checking and the error handling needed to reduce risks in normal and abnormal operating conditions.

Consider the following when developing fault checking and error handling for your PLUS+1® GUIDE application:

How the machine is normally used.

Possible operator errors and their consequences.

Industry safety standards and legal requirements.

Input and output failures and their consequences. These failures can include:

Joystick, sensor, and other inputs suddenly going to ±100 % or to 0 %.

Joystick, sensor, and other inputs suddenly going to ±100 % or to 0 %.

Outputs that control machinery direction, speed, and force suddenly changing direction or going to ±100 % or to 0 %.

Decide how likely each failure is. The more likely a failure, the more you need to protect against the consequences of the failure.

The sequence of events and consequences of a fault or error.

The sequence of events and consequences of an emergency stop.

Test

After creating an application, you are responsible for testing the application.

Download your application to hardware and test its operation under both normal and abnormal operating conditions. Make sure:

Individual inputs produce expected outputs.

Fault handling and error checking work as designed.

You must repeat your tests when you make configuration, calibration, or software changes to the application.

© Danfoss | February 2019

11062082 | AQ00000274en-000102 | 5

User Manual

PLUS+1® Compliant Function Block Library—Input Function Blocks

Risk Reduction

Secure

You have the responsibility to secure your application against unauthorized changes.

Always use the PLUS+1® GUIDE program’s Toolkey feature to restrict access to your application’s operating parameters.

Without Toolkey protection, there is an increased risk that unauthorized personnel could use the PLUS+1® Service Tool program to change your application’s operating parameters.

Changes in your application’s operating parameters might cause unexpected machinery movement that results in personal injury and equipment damage.

Toolkey protection reduces the risk that unauthorized personnel could use the PLUS+1® program to change your application’s operating parameters.

Refer to How to Use the Toolkey to Restrict Service Tool Access to Application Values in the PLUS+1—How-to chapter of the PLUS+1 GUIDE User Manual (Danfoss part 10100824).

6 | © Danfoss | February 2019

11062082 | AQ00000274en-000102

User Manual

PLUS+1® Compliant Function Block Library—Input Function Blocks

FNR_Direction Function Block

The FNR_Direction block provides interlock logic to prevent output commands when changing directions before coming to a complete stop.

Typical uses include:

Protecting hardware on machines from damage caused by abrupt changes in direction under heavy load.

Detecting faults on directional switches.

Inputs

The inputs to the FNR_Direction function block are described.

Use only the data types specified in this table. Other data types cause compiler errors.

Item

Type

Range

Description

 

 

 

 

ChkPt

BOOL

——

True—include the function block’s built-in Advanced Checkpoint with Namespace in the compiled

 

 

 

 

LHX download file.

 

 

 

False—exclude the function block’s built-in Advanced Checkpoint with Namespace components

 

 

 

 

from the compiled LHX download file.

 

 

 

 

Fwd Sw

BOOL

——

Forward switch—input signal indicating that the desired direction is forward.

 

 

 

 

Rvs Sw

BOOL

——

Reverse switch—input signal indicating that the desired direction is reverse.

 

 

 

 

Fdbk

S32

-2147483648–

Feedback—input signal indicating the actual direction of movement. The magnitude of the signal is

 

 

2147483647

not used.

 

 

 

Fdbk < 0—reverse

 

 

 

Fdbk = 0—neutral

 

 

 

Fdbk > 0—forward

 

 

 

 

 

Outputs

The outputs of the FNR_Direction function block are described.

Item

Type

Range

Description

 

 

 

 

IO

Bus

——

Outputs a bus with all of the function block's input and output signals.

 

 

 

This bus provides a convenient way to distribute this function block's signals to your application.

 

 

 

 

Fault

U16

——

Reports the faults of the function block.

 

 

 

This output follows the standard bitwise scheme described in the Status Logic topic.

 

 

 

 

© Danfoss | February 2019

11062082 | AQ00000274en-000102 | 7

User Manual

PLUS+1® Compliant Function Block Library—Input Function Blocks

FNR_Direction Function Block

Item

Type

Range

Description

 

 

 

 

Dir

S16

-1–1

Current output direction. This value is only allowed to change if the Fdbk= 0 or its value is the same

 

 

 

sign as the desired direction.

 

 

 

-1 = Reverse

 

 

 

0

= Neutral

 

 

 

1

= Forward

 

 

 

 

Drv Enbl

BOOL

——

Drive enable—this signal can be used to provide an interlock for an application’s propel command or

 

 

 

work function.

 

 

 

 

 

 

8 | © Danfoss | February 2019

11062082 | AQ00000274en-000102

User Manual

PLUS+1® Compliant Function Block Library—Input Function Blocks

FNR_Direction Function Block

Function Block Connections

Connections you can make with the function block are described.

Item

Description

 

 

1

True—include the function block’s built-in Advanced Checkpoint with Namespace in the compiled LHX download file.

 

False—exclude the function block’s built-in Advanced Checkpoint with Namespace components from the compiled LHX download file.

 

 

2

Forward Switch Input

 

 

3

Reverse Switch Input

 

 

4

Signed feedback signal from speed sensor, indicating direction.

 

 

5

Outputs a bus with all of the function block's input and output signals.

 

 

6

Reports the faults of the function block.

 

 

7

Output direction command.

 

 

8

Drive enable signal to be used as part of an application propel or work function interlock.

 

 

Fault Logic

This topic describes how fault logic is indicated for the function block.

Condition

Hex*

Binary

Cause

Response

Correction

Invalid input

0x8040

01000

Both Fwd Sw and Rvs Sw are

Drive En = False

Ensure system design only allows

combination

 

000

true at the same time.

at most one direction input to be

 

Dir = 0

 

 

 

 

true at any time.

 

 

 

 

 

 

 

 

 

 

 

 

 

* Bit 16 set to 1 identifies a standard Danfoss status or fault code.

Identical Function Blocks Need Different Namespace Values to Successfully Compile

If you use the same function block more than once in an application, you must change each function block’s namespace value to avoid compiler errors.

All function blocks contain Advanced Checkpoint with Namespace components that enable the PLUS+1® Service Tool to read block input and output values.

Some function blocks contain non-volatile memory components that store function block operating parameters.

Both these components use memory names (“aliases”) to allocate memory. Identical memory names cause compiler errors.

© Danfoss | February 2019

11062082 | AQ00000274en-000102 | 9

User Manual

PLUS+1® Compliant Function Block Library—Input Function Blocks

FNR_Direction Function Block

The namespace value adds a unique prefix to each component name to avoid errors. Keep each namespace value short to save controller memory.

Change Namespace Value

To successfully compile your application, change the namespace value for function blocks that are used more than once in an application.

1.In the PLUS+1® GUIDE menu bar, click the Query/Change button.

2.Click on the function block whose namespace you want to set to a unique value. The Edit Page window opens.

3.In the Edit Page window, enter a meaningful Namespace value.

Namespace values are case-sensitive.

To save controller memory, use a short namespace value.

4.Press Enter.

5.Repeat these steps to enter unique namespace values for other identical function blocks.

10 | © Danfoss | February 2019

11062082 | AQ00000274en-000102

User Manual

PLUS+1® Compliant Function Block Library—Input Function Blocks

FNR_Direction Function Block

IEC 61508-3 Annex D Supplemental Information

 

The following table provides IEC 61508-3 Annex D supplemental information.

 

 

Item

Description

 

 

Function block name

FNR_Direction

 

 

Function block version

4.0.

 

 

Function block development

PLUS+1® GUIDE version 8.1 and later.

environment

 

 

 

Compatible hardware

Verified in the PLUS+1® GUIDE compile process.

 

When the PLUS+1® GUIDE compiler finds a function block that is incompatible with hardware, it aborts the compile

 

process and logs an error message. The error message gives the location of the function block and states “Error 80:

 

component not supported in hwd.”

 

 

Function block developed in

Danfoss Software Product Development Process (PDP), which includes ISO 9001 and IEC 61508-3 standards.

compliance with

 

 

 

Competence required of

The knowledge, competence, and training required to:

function block integrator

Understand this manual.

 

Use the PLUS+1® GUIDE program to develop a machine control application.

 

Follow quality software practices to develop a machine control application.

 

 

Contacting Danfoss

https://www.danfoss.com/en/products/software/dps/plus1-software-services-support-and-training/plus1-support-and-

 

services

 

 

© Danfoss | February 2019

11062082 | AQ00000274en-000102 | 11

User Manual

PLUS+1® Compliant Function Block Library—Input Function Blocks

Multi_Dig_In Function Block

The Multi_Dig_In block converts an analog voltage signal applied to its Input into several Dig output signals.

Typical uses for this function block include:

Reading the status of a multi-position sensor switch.

Reading the position of HMI switches on a dashboard control.

Inputs

The inputs to the Multi_Dig_In function block are described.

Use only the data types specified in this table. Other data types cause compiler errors.

Item

Type

Range

Description

 

 

 

 

ChkPt

BOOL

——

True—include the function block’s built-in Advanced Checkpoint with Namespace in the compiled

 

 

 

LHX download file.

 

 

 

False—exclude the function block’s built-in Advanced Checkpoint with Namespace components

 

 

 

from the compiled LHX download file.

 

 

 

 

Dig In (Nmbr)

U8

1–8

Sets the number of active Dig outputs and the activation point for each Dig output.

 

 

 

determines the interval between Dig output activation points.

 

 

 

The block distributes activation points evenly across the Range.

 

 

 

 

Grd Bnd (mV)

U16

0–Rnge/(1+Dig In)

When Slct (Select) is T ,the Grd Bnd (Guard Band) value sets the width of a guard band that centers on

 

 

 

the activation point for each Dig output.

 

 

 

1000 = 1000 (no scaling applied)

 

 

 

When Slct is F, the Grd Bnd value sets the width of a guard band that extends above the activation

 

 

 

point for each Dig output.

 

 

 

1000 = 100 (10.00% scaling applied)

 

 

 

 

12 | © Danfoss | February 2019

11062082 | AQ00000274en-000102

User Manual

PLUS+1® Compliant Function Block Library—Input Function Blocks

Multi_Dig_In Function Block

Item

Type

Range

Description

 

 

 

 

Select

BOOL

——

When Select is T, the block enables just one Dig output at a time.

 

 

 

An Input signal in the guard band of a Dig output sets its output T. A T output adds hysteresis bands to

 

 

 

both sides of the output’s guard band. (Each hysteresis band is equal to 10% of the guard band’s

 

 

 

width.)

 

 

 

A T Dig output goes F when the Input signal moves outside of the hysteresis bands.

 

 

 

When Select is F, the block sequentially enables Digoutputs.

 

 

 

An Inputsignal above the guard band of a Dig output sets its output T. A T Dig output goes F when the

 

 

 

Input signal drops below its guard band.

 

 

 

 

Rnge (mV)

U16

0–40000

Range of Input over which the block operates.

 

 

 

 

Offset (mV)

U16

0–40000

Adjusts the center voltage calculation for each activation point. The Offset value moves each range up

 

 

 

by that amount.

 

 

 

10 = 10 mV

 

 

 

 

Input

U16

0 to (Rnge +

Signal from the sensor or HMI device. Changes in this input’s value switch the Dig outputs between T

 

 

Offset)

and F.

 

 

 

10 = 10 mV

 

 

 

 

Outputs

 

 

 

The outputs of the Multi_Dig_In function block are described.

 

 

 

 

 

Item

Type

Range

 

Description

 

 

 

 

 

IO

Bus

——

 

Outputs a bus with all of the function block's input and output signals.

 

 

 

 

This bus provides a convenient way to distribute this function block's signals to your application.

 

 

 

 

 

Status

U16

——

 

Reports the status of the function block.

 

 

 

 

This output follows the standard bitwise scheme described in the Status Logic topic.

 

 

 

 

 

Fault

U16

——

 

Reports the faults of the function block.

 

 

 

 

This output follows the standard bitwise scheme described in the Status Logic topic.

 

 

 

 

 

Dig 1

BOOL

——

 

Interpreted input state for the lowest digital range.

 

 

 

 

 

Dig 2

BOOL

——

 

Interpreted input state for digital range 2.

 

 

 

 

 

Dig 3

BOOL

——

 

Interpreted input state for digital range 3.

 

 

 

 

 

Dig 4

BOOL

——

 

Interpreted input state for digital range 4.

 

 

 

 

 

Dig 5

BOOL

——

 

Interpreted input state for digital range 5.

 

 

 

 

 

Dig 6

BOOL

——

 

Interpreted input state for digital range 6.

 

 

 

 

 

Dig 7

BOOL

——

 

Interpreted input state for digital range 7.

 

 

 

 

 

Dig 8

BOOL

——

 

Interpreted input state for digital range 8.

 

 

 

 

 

© Danfoss | February 2019

11062082 | AQ00000274en-000102 | 13

Danfoss Input Function Blocks Operating guide

User Manual

PLUS+1® Compliant Function Block Library—Input Function Blocks

Multi_Dig_In Function Block

Function Block Connections

Connections you can make with the function block are described.

Item

Description

 

 

1

True—include the function block’s built-in Advanced Checkpoint with Namespace in the compiled LHX download file.

 

False—exclude the function block’s built-in Advanced Checkpoint with Namespace components from the compiled LHX download file.

 

 

2

Number of digital inputs to be interpreted.

 

 

3

Sets the range around or above each switch point.

 

 

4

Sets the input mode type. When true, only one Dig output is true at a time. When false, all Dig outputs at or below the Input switch point are

 

true..

 

 

5

Indicates the expected range of Input from the lowest to highest switch point.

 

 

6

Indicates the shift of the Input signal above 0.

 

 

7

Signal from the sensor representing digital input states.

 

 

8

Outputs a bus with all of the function block's input and output signals.

 

 

9

Reports the status of the function block.

 

 

10

Reports the faults of the function block.

 

 

11to

Digital input states interpreted from the Input.

18

 

 

 

14 | © Danfoss | February 2019

11062082 | AQ00000274en-000102

User Manual

PLUS+1® Compliant Function Block Library—Input Function Blocks

Multi_Dig_In Function Block

Status Logic

This topic describes how status logic is indicated for the function block.

Condition

Hex*

Binary

Cause

Response

Correction

 

 

 

Dig In, Grd Bnd, Rnge and/or

Output signal is calculated using

 

 

 

 

Offset parameters out of range

the parameters clamped to their

Review function inputs to ensure

Invalid configuration

0x8008

1000

 

respective ranges.

they are within their valid

 

 

 

The Grd Bnd is larger than the

The Grd Bnd is limited to the

ranges..

 

 

 

calculated digital interval size.

calculated digital interval size.

 

 

 

 

 

 

 

* Bit 16 set to 1 identifies a standard Danfoss status or fault code.

Fault Logic

This topic describes how fault logic is indicated for the function block.

Condition

Hex*

Binary

Cause

Response

Correction

Input value is too low.

0x8001

0001

Input value below zero.

Output signals are based on

Ensure Input is within the valid

 

 

 

 

Input = 0.

range.

 

 

 

 

 

 

Input value is too high.

0x8002

0010

Input value above (Rnge +

Output signals are based on

Ensure Input is within the valid

 

 

 

Offset).

range. Ensure Rnge and Offset

 

 

 

Input = (Rnge + Offset).

 

 

 

 

are correct.

 

 

 

 

 

 

 

 

 

 

 

* Bit 16 set to 1 identifies a standard Danfoss status or fault code.

Example 1—Slct is T

© Danfoss | February 2019

11062082 | AQ00000274en-000102 | 15

User Manual

PLUS+1® Compliant Function Block Library—Input Function Blocks

Multi_Dig_In Function Block

Example 2—Slct is F

Identical Function Blocks Need Different Namespace Values to Successfully Compile

If you use the same function block more than once in an application, you must change each function block’s namespace value to avoid compiler errors.

All function blocks contain Advanced Checkpoint with Namespace components that enable the PLUS+1® Service Tool to read block input and output values.

Some function blocks contain non-volatile memory components that store function block operating parameters.

Both these components use memory names (“aliases”) to allocate memory. Identical memory names cause compiler errors.

The namespace value adds a unique prefix to each component name to avoid errors. Keep each namespace value short to save controller memory.

16 | © Danfoss | February 2019

11062082 | AQ00000274en-000102

User Manual

PLUS+1® Compliant Function Block Library—Input Function Blocks

Multi_Dig_In Function Block

Change Namespace Value

To successfully compile your application, change the namespace value for function blocks that are used more than once in an application.

1.In the PLUS+1® GUIDE menu bar, click the Query/Change button.

2.Click on the function block whose namespace you want to set to a unique value. The Edit Page window opens.

3.In the Edit Page window, enter a meaningful Namespace value.

Namespace values are case-sensitive.

To save controller memory, use a short namespace value.

4.Press Enter.

5.Repeat these steps to enter unique namespace values for other identical function blocks.

© Danfoss | February 2019

11062082 | AQ00000274en-000102 | 17

User Manual

PLUS+1® Compliant Function Block Library—Input Function Blocks

Multi_Dig_In Function Block

IEC 61508-3 Annex D Supplemental Information

 

The following table provides IEC 61508-3 Annex D supplemental information.

 

 

Item

Description

 

 

Function block name

Multi_Dig_In.

 

 

Function block version

4.0.

 

 

Function block development

PLUS+1® GUIDE version 8.1 and later.

environment

 

 

 

Compatible hardware

Verified in the PLUS+1® GUIDE compile process.

 

When the PLUS+1® GUIDE compiler finds a function block that is incompatible with hardware, it aborts the compile

 

process and logs an error message. The error message gives the location of the function block and states “Error 80:

 

component not supported in hwd.”

 

 

Function block developed in

Danfoss Software Product Development Process (PDP), which includes ISO 9001 and IEC 61508-3 standards.

compliance with

 

 

 

Competence required of

The knowledge, competence, and training required to:

function block integrator

Understand this manual.

 

Use the PLUS+1® GUIDE program to develop a machine control application.

 

Follow quality software practices to develop a machine control application.

 

 

Contacting Danfoss

https://www.danfoss.com/en/products/software/dps/plus1-software-services-support-and-training/plus1-support-and-

 

services

 

 

18 | © Danfoss | February 2019

11062082 | AQ00000274en-000102

User Manual

PLUS+1® Compliant Function Block Library—Input Function Blocks

Sensor_2Pt Function Block

The Sensor_2Pt block converts a raw signal from a sensor into a percentage output.

The percentage output is based on the signal characteristics of the sensor. This block scales its Output between 0% and +100%.

Typical uses for this function block include:

Reading analog sensors where piece–to-piece variation is negligible for the required accuracy of the signal.

Implementing an alternative sensor calibration algorithm and using this block for the scaling and fault detection functions.

Reading max speed potentiometers, trim steer potentiometers, and fuel level sensors.

Inputs

The inputs to the Sensor_2Pt function block are described.

Use only the data types specified in this table. Other data types cause compiler errors.

Item

Type

Range

Description

 

 

 

 

ChkPt

BOOL

——

True—include the function block’s built-in Advanced Checkpoint with Namespace in the compiled

 

 

 

LHX download file.

 

 

 

False—exclude the function block’s built-in Advanced Checkpoint with Namespace components

 

 

 

from the compiled LHX download file.

 

 

 

 

Fault %

U16

0–10000

The Input is allowed to go above the Hi Cal % and below the Lo Cal % by a calculated allowable fault

 

 

 

value. The fault value is the Fault % of the calibrated input range.

 

 

 

1000 = 10.00%

 

 

 

 

Hi DBnd %

U16

0–5000

Hi DBnd % (High Deadband Percent) defines the deadband region for the sensor’s upper limit.

 

 

 

Increasing the deadband value decreases the sensor’s resolution while reducing the deadband narrows

 

 

 

the margin for acceptable input noise and sensor variation.

 

 

 

1000 = 10.00%

 

 

 

 

Lo DBnd %

U16

0–5000

Lo DBnd % (Low Deadband Percent) defines the deadband region for the sensor’s lower limit.

 

 

 

Increasing the deadband value decreases the sensor’s resolution while reducing the deadband narrows

 

 

 

the margin for acceptable input noise and sensor variation.

 

 

 

1000 = 10.00%

 

 

 

 

Hi Cal %

U16

0–10000

Hi Cal % (High Calibration Percent) defines the upper limit of the sensor’s signal in terms of the sensor’s

 

 

 

supply voltage.

 

 

 

This is a percentage of Snsr Pwr.

 

 

 

1000 = 10.00%

 

 

 

 

 

 

 

 

© Danfoss | February 2019

11062082 | AQ00000274en-000102 | 19

User Manual

PLUS+1® Compliant Function Block Library—Input Function Blocks

Sensor_2Pt Function Block

Item

Type

Range

Description

 

 

 

 

Lo Cal %

U16

0–10000

Lo Cal % (Low Calibration Percent) defines the lower limit of the sensor’s signal in terms of the sensor’s

 

 

 

supply voltage.

 

 

 

This is a percentage of Snsr Pwr.

 

 

 

1000 = 10.00%

 

 

 

 

Snsr Pwr

U16

0–65535

Snsr Pwr (Sensor Power) defines the reference for ratiometric calculations. If a sensor is ratiometric, the

 

 

 

function block’s Output signal is continually compensated for variation in the supply. If the sensor is

 

 

 

not ratiometric, connect a constant value representing the full scale signal range.

 

 

 

 

Input

U16

0–65535

Signal from the sensor. The units of this signal must be the same units for Snsr Pwr.

 

 

 

 

Outputs

 

 

The outputs of the Sensor_2Pt function block are described.

 

 

 

 

Item

Type

Range

Description

 

 

 

 

IO

Bus

——

Outputs a bus with all of the function block's input and output signals.

 

 

 

This bus provides a convenient way to distribute this function block's signals to your application.

 

 

 

 

Status

U16

——

Reports the status of the function block.

 

 

 

This output follows the standard bitwise scheme described in the Status Logic topic.

 

 

 

 

Fault

U16

——

Reports the faults of the function block.

 

 

 

This output follows the standard bitwise scheme described in the Status Logic topic.

 

 

 

 

Output

U16

0–10000

Percent of Input applied to the sensor’s calibrated range.

 

 

 

1000 = 10.00%

 

 

 

 

20 | © Danfoss | February 2019

11062082 | AQ00000274en-000102

User Manual

PLUS+1® Compliant Function Block Library—Input Function Blocks

Sensor_2Pt Function Block

Function Block Connections

Connections you can make with the function block are described.

Item

Description

 

 

1

True—include the function block’s built-in Advanced Checkpoint with Namespace in the compiled LHX download file.

 

False—exclude the function block’s built-in Advanced Checkpoint with Namespace components from the compiled LHX download file.

 

 

2

Deviation below and above the calibration point allowed before reporting an input fault condition.

 

 

3

Defines the size of the deadband region at the high calibration point. Within this region the output is 10000 (100%).

 

 

4

Defines the size of the deadband region at the low calibration point. Within this region the output is 0 (0%).

 

 

5

Sets the high end of the sensor’s nominal Input signal range as a percent of Snsr Pwr.

 

 

6

Sets the low end of the sensor’s nominal Input signal range as a percent of Snsr Pwr.

 

 

7

Used to monitor the sensor’s power supply to make ratiometric adjustments within the function block.

 

 

8

Signal indicating the position of the sensor.

 

 

9

Outputs a bus with all of the function block's input and output signals.

 

 

10

Reports the status of the function block.

 

 

11

Reports the faults of the function block.

 

 

12

Position indicator of the sensor as a percent of its calibration range.

 

 

© Danfoss | February 2019

11062082 | AQ00000274en-000102 | 21

Loading...
+ 47 hidden pages