PLUS+1® Compliant Function Block Library—Input Function Blocks
Contents
Risk Reduction
Design, Test, and Secure to Reduce Risks................................................................................................................................5
Function Block Connections.........................................................................................................................................................9
Function Block Connections...................................................................................................................................................... 14
Status 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
Function Block Connections...................................................................................................................................................... 21
Status Logic......................................................................................................................................................................................22
Calibration and Fault Values...................................................................................................................................................... 22
Function Block Connections...................................................................................................................................................... 29
Status Logic......................................................................................................................................................................................30
Calibration and Fault Values...................................................................................................................................................... 30
Function Block Connections...................................................................................................................................................... 38
Status Logic......................................................................................................................................................................................39
Calibration and Fault Values...................................................................................................................................................... 39
Function Block Connections...................................................................................................................................................... 48
Status Logic......................................................................................................................................................................................49
Calibration and Fault Values...................................................................................................................................................... 49
Function Block Connections...................................................................................................................................................... 56
Status Logic......................................................................................................................................................................................56
Function Block Connections...................................................................................................................................................... 61
Status Logic......................................................................................................................................................................................61
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
Test
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.
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 201911062082 | 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).
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.
ItemTypeRangeDescription
ChkPtBOOL——
Fwd SwBOOL——Forward switch—input signal indicating that the desired direction is forward.
Rvs SwBOOL——Reverse switch—input signal indicating that the desired direction is reverse.
FdbkS32-2147483648–
2147483647
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.
Feedback—input signal indicating the actual direction of movement. The magnitude of the signal is
not used.
•
Fdbk < 0—reverse
•
Fdbk = 0—neutral
•
Fdbk > 0—forward
Outputs
The outputs of the FNR_Direction function block are described.
ItemTypeRangeDescription
IOBus——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.
FaultU16——Reports the faults of the function block.
This output follows the standard bitwise scheme described in the Status Logic topic.
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.
Description
Item
1
2Forward Switch Input
3Reverse Switch Input
4Signed feedback signal from speed sensor, indicating direction.
5Outputs a bus with all of the function block's input and output signals.
6Reports the faults of the function block.
7Output direction command.
8Drive enable signal to be used as part of an application propel or work function interlock.
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 Logic
This topic describes how fault logic is indicated for the function block.
ConditionHex
Invalid input
combination
*
Bit 16 set to 1 identifies a standard Danfoss status or fault code.
*
Binary CauseResponseCorrection
0x804001000
000
Both Fwd Sw and Rvs Sw are
true at the same time.
Drive En = False
•
Dir = 0
•
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.
Ensure system design only allows
at most one direction input to be
true at any time.
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
Function block nameFNR_Direction
Function block version4.0.
Function block development
environment
Compatible hardware
Function block developed in
compliance with
Competence required of
function block integrator
Contacting Danfoss
Description
PLUS+1® GUIDE version 8.1 and later.
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.”
Danfoss Software Product Development Process (PDP), which includes ISO 9001 and IEC 61508-3 standards.
The knowledge, competence, and training required to:
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.
Danfoss | February 201911062082 | 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.
ItemTypeRangeDescription
ChkPtBOOL——
Dig In (Nmbr)U81–8Sets the number of active Dig outputs and the activation point for each Dig output.
Grd Bnd (mV)U160–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
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.
determines the interval between Dig output activation points.
The block distributes activation points evenly across the Range.
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)
PLUS+1® Compliant Function Block Library—Input Function Blocks
Multi_Dig_In Function Block
ItemTypeRangeDescription
SelectBOOL——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)U160–40000Range of Input over which the block operates.
Offset (mV)U160–40000Adjusts the center voltage calculation for each activation point. The Offset value moves each range up
by that amount.
10 = 10 mV
InputU160 to (Rnge +
Offset)
Outputs
The outputs of the Multi_Dig_In function block are described.
Signal from the sensor or HMI device. Changes in this input’s value switch the Dig outputs between T
and F.
10 = 10 mV
ItemTypeRangeDescription
IOBus——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.
StatusU16——Reports the status of the function block.
This output follows the standard bitwise scheme described in the Status Logic topic.
FaultU16——Reports the faults of the function block.
This output follows the standard bitwise scheme described in the Status Logic topic.
Danfoss | February 201911062082 | AQ00000274en-000102 | 13
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.
Description
Item
1
2Number of digital inputs to be interpreted.
3Sets the range around or above each switch point.
4Sets 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
5Indicates the expected range of Input from the lowest to highest switch point.
6Indicates the shift of the Input signal above 0.
7Signal from the sensor representing digital input states.
8Outputs a bus with all of the function block's input and output signals.
9Reports the status of the function block.
10Reports the faults of the function block.
11to18Digital input states interpreted from the Input.
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.
Danfoss | February 201911062082 | 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
Function block nameMulti_Dig_In.
Function block version4.0.
Function block development
environment
Compatible hardware
Function block developed in
compliance with
Competence required of
function block integrator
Contacting Danfoss
Description
PLUS+1® GUIDE version 8.1 and later.
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.”
Danfoss Software Product Development Process (PDP), which includes ISO 9001 and IEC 61508-3 standards.
The knowledge, competence, and training required to:
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.
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.
ItemTypeRangeDescription
ChkPtBOOL——
Fault %U160–10000The Input is allowed to go above the Hi Cal % and below the Lo Cal % by a calculated allowable fault
Hi DBnd %U160–5000Hi DBnd % (High Deadband Percent) defines the deadband region for the sensor’s upper limit.
Lo DBnd %U160–5000Lo DBnd % (Low Deadband Percent) defines the deadband region for the sensor’s lower limit.
Hi Cal %U160–10000Hi Cal % (High Calibration Percent) defines the upper limit of the sensor’s signal in terms of the sensor’s
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.
value. The fault value is the Fault % of the calibrated input range.
1000 = 10.00%
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%
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%
supply voltage.
This is a percentage of Snsr Pwr.
1000 = 10.00%
Danfoss | February 201911062082 | AQ00000274en-000102 | 19
User Manual
PLUS+1® Compliant Function Block Library—Input Function Blocks
Sensor_2Pt Function Block
ItemTypeRangeDescription
Lo Cal %U160–10000Lo 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 PwrU160–65535Snsr 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.
InputU160–65535Signal 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.
ItemTypeRangeDescription
IOBus——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.
StatusU16——Reports the status of the function block.
This output follows the standard bitwise scheme described in the Status Logic topic.
FaultU16——Reports the faults of the function block.
This output follows the standard bitwise scheme described in the Status Logic topic.
OutputU160–10000Percent of Input applied to the sensor’s calibrated range.
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.
Description
Item
1
2Deviation below and above the calibration point allowed before reporting an input fault condition.
3Defines the size of the deadband region at the high calibration point. Within this region the output is 10000 (100%).
4Defines the size of the deadband region at the low calibration point. Within this region the output is 0 (0%).
5Sets the high end of the sensor’s nominal Input signal range as a percent of Snsr Pwr.
6Sets the low end of the sensor’s nominal Input signal range as a percent of Snsr Pwr.
7Used to monitor the sensor’s power supply to make ratiometric adjustments within the function block.
8Signal indicating the position of the sensor.
9Outputs a bus with all of the function block's input and output signals.
10Reports the status of the function block.
11Reports the faults of the function block.
12Position indicator of the sensor as a percent of its calibration range.
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.