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.
Danfoss | February 201911062082 | AQ00000274en-000102 | 25
User Manual
PLUS+1® Compliant Function Block Library—Input Function Blocks
Sensor_2Pt Function Block
IEC 61508-3 Annex D Supplemental Information
The following table provides IEC 61508-3 Annex D supplemental information.
Item
Function block nameSensor_2Pt
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_3Pt Function Block
The Sensor_3Pt function block converts a raw signal from a sensor into a percentage output.
This percentage output is based on the signal characteristics of the sensor. This block scales its Output
between ±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 bi-directional foot pedal, trim steer potentiometers, and joystick inputs.
•
Inputs
The inputs to the Sensor_3Pt 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
Hi/Lo DBnd %U160–5000Hi DBnd % (High/Low Deadband Percent) defines the deadband region for the sensor’s upper
Mid DBnd %U160–5000Mid DBnd % (Middle Deadband Percent) defines the deadband region around the middle
Hi Cal %U160–10000Hi Cal % (High Calibration Percent) defines the upper limit of the sensor’s signal in terms of
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.
allowable fault value. The fault value is the Fault % of the calibrated input range.
1000 = 10.00%
and lower limits.
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%
calibration point.
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%
the sensor’s supply voltage. When the Input is within the deadband around this calibration
value Output = 10000 (100.00%).
This is a percentage of Snsr Pwr.
1000 = 10.00%
Danfoss | February 201911062082 | AQ00000274en-000102 | 27
User Manual
PLUS+1® Compliant Function Block Library—Input Function Blocks
Sensor_3Pt Function Block
ItemTypeRangeDescription
Mid Cal %U160–10000Mid Cal % (Middle Calibration Percent) defines the middle point of the sensor’s signal in terms
of the sensor’s supply voltage. When the Input is within the deadband around this calibration
value Output = 0.
This is a percentage of Snsr Pwr.
1000 = 10.00%
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. When the Input is within the deadband around this calibration value
Output = -10000 (-100.00%).
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_3pt 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.
OutputS16-10000–10000Percent of Input applied to the sensor’s calibrated range.
PLUS+1® Compliant Function Block Library—Input Function Blocks
Sensor_3Pt 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 and low calibration points. Within the high region Output is 10000 (100%) and within the
4
5Sets the high end of the sensor’s nominal Input signal range as a percent of Snsr Pwr.
6
7
8
9
10Outputs a bus with all of the function block's input and output signals.
11Reports the status of the function block.
12Reports the faults of the function block.
13Position 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.
•
low region Output is -10000 (-100%).
Defines the size of the deadband region at the middle calibration point. Within this region Output is 0 (0%).
Sets the midpoint of the sensor’s nominal Input signal range as a percent of Snsr Pwr.
Sets the low end of the sensor’s nominal Input signal range as a percent of Snsr Pwr.
Used to monitor the sensor’s power supply to make ratiometric adjustments within the function block.
Signal indicating the position of the sensor.
Bit 16 set to 1 identifies a standard Danfoss status or fault code.
Fault Logic
ConditionHex
Input value is too low.0x80010001Input value below Fault %
Input value is too high.0x80020010Input value above Fault %
*
Bit 16 set to 1 identifies a standard Danfoss status or fault code.
*
Binary CauseResponseCorrection
Output signal is calculated using
DBnd %, Hi Cal %, Mid Cal %,
Lo Cal % parameters and/or
Snsr Pwr is outside its defined
range.
the parameters clamped to their
respective ranges.
This topic describes how fault logic is indicated for the function block.
*
Binary CauseResponseCorrection
Output = -10000Ensure Input is within the validregion below Lo Cal %.
Output = 10000Ensure Input is within the valid
region above Hi Cal %.
Review function inputs to ensure
they are within their valid ranges.
range. Ensure Fault % and LoCal % are correct.
range. Ensure Fault % and Hi Cal
% are correct.
Calibration and Fault Values
This topic describes how out-of-range faults are defined by input values, as well as how high, medium,
and low calibration output values are determined.
The following graph shows how the:
Hi Cal % input to the function block defines the Input value (in mV) that produces an Output value
•
of 10000.
Mid Cal % input to the function block defines the Input value (in mV) that produces an Output value
•
of 0.
Lo Cal % input to the function block defines the Input value (in mV) that produces an Output value
•
of -10000.
Fault % input sets defines the Input values (in mV) at which the block declares out-of-range faults.
•
The function block has a Snsr Pwr input of 5000 mV.
Danfoss | February 201911062082 | AQ00000274en-000102 | 33
User Manual
PLUS+1® Compliant Function Block Library—Input Function Blocks
Sensor_3Pt Function Block
IEC 61508-3 Annex D Supplemental Information
The following table provides IEC 61508-3 Annex D supplemental information.
Item
Function block nameSensor_3Pt
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_AC Function Block
The Sensor_2Pt_AC block converts a raw signal from a sensor into a percentage output.
This percentage output is based on the signal characteristics of the sensor. A built-in calibration routine
can capture the electrical signal at each end of the sensor’s range. This block scales its Output between
0% and +100%.
Reading analog sensors where piece-to-piece variation needs to be accounted for to ensure accuracy
•
of the signal.
Reading maximum speed potentiometers, trim steer potentiometers, and fuel-level sensors.
•
Inputs
The inputs to the Sensor_2Pt_AC function block are described.
Use only the data types specified in this table. Other data types cause compiler errors.
ItemTypeRangeDescription
ChkPtBOOL——
ParaBus——Brings external inputs (such as deadband parameters) into the function block.
Neut RtnBOOL——Neut Rtn (Neutral Return) sets when the function block enables its Output signals after a controller
Cal CmdU80–3Calibration command:
Rst Para FltBOOL——
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.
startup, calibration, or a fault or status condition.
True—Function block enables its Output signal after the Input returns to the neutral (zero percent)
•
position.
False—Function block immediately enables its Output signal.
•
•
0—Semi-automatic calibration disabled. If calibrated, the function block outputs the input
percentage the calibrated range. Cal_1 and Cal_2 can only change via the PLUS+1® Service Tool.
•
1—Semi-automatic calibration enabled. Capture values using autocalibration or directly download
values with the PLUS+1® Service Tool. In autocalibration, you manipulate the sensor to each
extremity and the function block captures values that fall within the defined windows.
•
2—Set Cal_1 and Cal_2 parameters to default values.
•
3—Clear calibration values. Set Cal_1 and Cal_2 to zero.
When the function block detects an invalid combination of parameters it sets a status condition and
disables the Output signal (Output = 0). The Rst Para Flt (Reset Parameter Fault) determines if the
function block enables the Output signal after the condition clears.
True—Function block immediately enables the Output signal.
•
False—Function block enables the Output signal after you repower the controller.
Danfoss | February 201911062082 | AQ00000274en-000102 | 35
User Manual
PLUS+1® Compliant Function Block Library—Input Function Blocks
Sensor_2Pt_AC Function Block
ItemTypeRangeDescription
Rst In FltBOOL——
Snsr PwrU160–65535Snsr Pwr (Sensor Power) defines the reference for ratiometric calculations. If a sensor is ratiometric, the
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_AC function block are described.
ItemTypeRangeDescription
IOBus——Outputs a bus with all of the function block's input and output signals.
StatusU16——Reports the status of the function block.
FaultU16——Reports the faults of the function block.
OutputU160–10000Percent of Input applied to the sensor’s calibrated range.
When the function block detects an Input failure it sets a fault condition and disables the Output signal
(Output = 0) The Rst In Flt (Reset Input Fault) determines if the block enables the Output signal after
the condition clears.
True—Function block immediately enables the Output signal.
•
False—Function block enables the Output signal after you repower the controller.
•
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.
This bus provides a convenient way to distribute this function block's signals to your application.
This output follows the standard bitwise scheme described in the Status Logic topic.
This output follows the standard bitwise scheme described in the Status Logic topic.
1000 = 10.00%
Configuration Settings
Function Block Configuration Settings
InputTypeRangeDescription
StorePara BOOL——StorePara (Store Parameter) is a signal from the block’s calibration function to store the current value in EEPROM.
Set DefBOOL——Set Def (Set Defaults) is a signal from the block’s calibration function to reset the values stored in EEPROM.
LUS+1® Compliant Function Block Library—Input Function Blocks
Sensor_2Pt_AC Function Block
Function Block Configuration Settings (continued)
InputTypeRangeDescription
Cal_1S160–10000Cal_1 (Calibration Point 1) is the signal level associated with 0%
Cal_2S160–10000Cal_2 (Calibration Point 2) is the signal level associated with 100% Output. This is a percentage of Snsr Pwr.
Dbnd_1U160–5000Sets the width of the deadband at 0%.
Dbnd_2U160–5000Sets the width of the deadband at 100%.
ExpCal_1 U160–10000
ExpCal_2 U160–10000ExpCal_2
CalWinU160–5000Sets the width of the calibration window. The Input must fall within this window around the expected calibration
CalDetTm U160–65535CalDetTm (Calibration Detection Time) sets the time after the Input enters a calibration window before the value
FltDetTm U160–65535FltDetTm (Fault Detection Time) sets the time before an abnormal Input causes the function block to set a Fault
For the block to compile, this signal must be connected to a “Connect” type output that is bidirectional.
1000 = 10.00%
For the block to compile, this signal must be connected to a “Connect” type output that is bidirectional.
1000 = 10.00%
An Input within this deadband produces a 0% Output.
The function block sets the width of this deadband as a percentage of the difference between the Cal_1 and Cal_2
calibration values.
1000 = 10.00%
An Input within this deadband produces a 100% output.
The function block sets the width of this deadband as a percentage of the difference between the Cal_1 and Cal_2
calibration values.
1000 = 10.00%
ExpCal_1
Output. This is a percentage of Snsr Pwr.
1000 = 10.00%
100% Output. This is a percentage of Snsr Pwr.
1000 = 10.00%
point for the calibration detection time before the calibration point is saved.
is captured.
1000 = 1000 ms
condition.
1000 = 1000 ms
(Expected Calibration Point 1) sets the middle of the calibration window for semi-autocalibration for 0%
(Expected Calibration Point 2 sets the middle of the calibration window for semi-autocalibration for
PLUS+1® Compliant Function Block Library—Input Function Blocks
Sensor_2Pt_AC Function Block
Function Block Connections
Connections you can make with the function block are described.
Description
Item
1
2Bus interface for optional external inputs.
3Force the input to return to the sensor’s zero position before allowing non-zero output after fault, status, or startup conditions.
4Control and configuration of the built in calibration function.
5Latch all detected parameter faults, forcing controller power cycle before clearing.
6Latch all detected input faults, forcing controller power cycle before clearing.
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.
Danfoss | February 201911062082 | AQ00000274en-000102 | 41
500
1000
0
15002000
2500
3000
Input (mV)
35004000
4500
5000
0
1000
2000
3000
4000
5000
6000
7000
8000
9000
10000
Output (10000 = 100.00%)
3000
Function Block Values
CalWin = 1000
ExpCal_2 = 9000
ExpCal_1 = 1000
Cal_2 = To be captured in autocalibration
Cal_1 = To be captured in autocalibration
Cal Cmd = 3
Snsr Pwr = 5000 mV
Calibration Window Formulas
Calibration window width (mV) = Snsr Pwr x CalWin
Center of upper calibration window = ExpCal_2 x Snsr Pwr
Upper calibration window range = ExpCal_2 ± (Calibration window width ÷ 2)
Center of lower calibration window = ExpCal_1 x Snsr Pwr
Lower calibration window range = ExpCal_1 ± (Calibration window width ÷ 2)
Upper calibration window—a valid Cal_2 value (high calibration point) can only be captured in this 4250–4750 mV range
ExpCal_2 x Snsr Pwr—the upper calibration window centers on this value
Lower calibration window—a valid Cal_1 value (low calibration point) can only be captured in this 250–750 mV range
ExpCal_1 x Snsr Pwr—the lower calibration window centers on this value
User Manual
PLUS+1® Compliant Function Block Library—Input Function Blocks
Sensor_2Pt_AC Function Block
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.
Danfoss | February 201911062082 | AQ00000274en-000102 | 43
User Manual
PLUS+1® Compliant Function Block Library—Input Function Blocks
Sensor_2Pt_AC Function Block
IEC 61508-3 Annex D Supplemental Information
The following table provides IEC 61508-3 Annex D supplemental information.
Item
Function block nameSensor_2Pt_AC
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_3Pt_AC Function Block
The Sensor_3Pt_AC block converts a raw signal from a sensor into a percentage output.
This percentage output is based on signal characteristics of the sensor. A built-in calibration routine can
capture the electrical signal at each end of the sensor’s range. This block scales its Output between
-100% and 100%.
Typical uses for this function block include:
Reading analog sensors where piece-to-piece variation needs to be accounted for to ensure accuracy
•
of the signal.
Reading steering and angle sensors, bidirectional foot pedals and joysticks, and any other
•
potentiometric or hall sensors requiring 3 calibration points.
Inputs
The inputs to the Sensor_3Pt_AC function block are described.
Use only the data types specified in this table. Other data types cause compiler errors.
ItemTypeRangeDescription
ChkPtBOOL——
ParaBus——Brings external inputs (such as deadband parameters) into the function block.
Neut RtnBOOL——Neut Rtn (Neutral Return) sets when the function block enables its Output signals after a controller
Cal CmdU80–3Calibration command:
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.
startup, calibration, or a fault or status condition.
True—Function block enables its Output signal after the Input returns to the neutral (zero percent)
•
position.
False—Function block immediately enables its Output signal.
•
0—semi-automatic calibration disabled. If calibrated, the block outputs the input percentage the
calibrated range. Cal_1, Cal_2, and Cal_3 can only change via the PLUS+1® Service Tool.
•
1—Semi-automatic calibration enabled. Capture values using autocalibration or directly download
values with the PLUS+1® Service Tool. In autocalibration, you manipulate the sensor to each
extremity and the function block captures values that fall within the defined windows.
•
2—Set Cal_1, Cal_2, and Cal_3 parameters to default values.
•
3—Clear calibration values. Set Cal_1, Cal_2, and Cal_3 to zero.
Danfoss | February 201911062082 | AQ00000274en-000102 | 45
User Manual
PLUS+1® Compliant Function Block Library—Input Function Blocks
Sensor_3Pt_AC Function Block
ItemTypeRangeDescription
Rst Para FltBOOL——
Rst In FltBOOL——
Snsr PwrU160–65535Snsr Pwr (Sensor Power) defines the reference for ratiometric calculations. If a sensor is ratiometric, the
InputU160–65535Signal from the sensor. The units of this signal must be the same units for Snsr Pwr.
Outputs
The outputs of the Sensor_3Pt_AC function block are described.
When the function block detects an invalid combination of parameters it sets a status condition and
disables the Output signal (Output = 0). The Rst Para Flt (Reset Parameter Fault) determines if the
function block enables the Output signal after the condition clears.
True—Function block immediately enables the Output signal.
•
False—Function block enables the Output signal after you repower the controller.
•
When the function block detects an Input failure it sets a fault condition and disables the Output signal
(Output = 0) The Rst In Flt (Reset Input Fault) determines if the block enables the Output signal after
the condition clears.
True—Function block immediately enables the Output signal.
•
False—Function block enables the Output signal after you repower the controller.
•
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.
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.
OutputS16-10000–10000Percent of Input applied to the sensor’s calibrated range.
PLUS+1® Compliant Function Block Library—Input Function Blocks
Sensor_3Pt_AC Function Block
Function Block Configuration Settings
InputTypeRangeDescription
StorePara BOOL——StorePara (Store Parameter) is a signal from the block’s calibration function to store the current value in EEPROM.
Set DefBOOL——Set Def (Set Defaults) is a signal from the block’s calibration function to reset the values stored in EEPROM.
Cal_1S160–10000Cal_1 (Calibration Point 1) is the signal level associated with -100% Output. This is a percentage of Snsr Pwr.
For the block to compile, this signal must be connected to a “Connect” type output that is bidirectional.
1000 = 10.00%
Cal_2S160–10000Cal_2 (Calibration Point 2) is the signal level associated with 0% Output. This is a percentage of Snsr Pwr.
For the block to compile, this signal must be connected to a “Connect” type output that is bidirectional.
1000 = 10.00%
Cal_3S160–10000Cal_3 (Calibration Point 3) is the signal level associated with 100% Output. This is a percentage of Snsr Pwr.
For the block to compile, this signal must be connected to a “Connect” type output that is bidirectional.
1000 = 10.00%
Dbnd_1U160–5000Sets the width of the deadband at 0%.
An input within this deadband produces a -100% Output.
The function block sets the width of this deadband as a percentage of the difference between the Cal_1 and Cal_2
calibration values.
1000 = 10.00%
Dbnd_2U160–5000Sets the width of the deadband at 100%.
An input within this deadband produces a 0% Output.
The function block sets the width of this deadband as a percentage of the difference between the Cal_1 and Cal_2
calibration values for Input below Cal_2 and as a percentage of the difference between the Cal_2 and Cal_3
calibration values for Input above Cal_2.
1000 = 10.00%
Dbnd_3U160–5000Sets the width of the deadband at 100%.
An input within this deadband produces a 100% output.
The function block sets the width of this deadband as a percentage of the difference between the Cal_2 and Cal_3
calibration values.
1000 = 10.00%
ExpCal_1 U160–10000ExpCal_1 (Expected Calibration Point 1) sets the middle of the calibration window for semi-autocalibration for
-100% Output. This is a percentage of Snsr Pwr.
1000 = 10.00%
ExpCal_2 U160–10000ExpCal_2 (Expected Calibration Point 2) sets the middle of the calibration window for semi-autocalibration for 0%
Output. This is a percentage of Snsr Pwr.
1000 = 10.00%
ExpCal_3 U160–10000ExpCal_3 (Expected Calibration Point 3) sets the middle of the calibration window for semi-autocalibration for
100% Output. This is a percentage of Snsr Pwr.
1000 = 10.00%
CalWinU160–5000Sets the width of the calibration window. The input must fall within this window around the expected calibration
point for the calibration detection time before the calibration point is saved.
CalDetTm U160–65535CalDetTm (Calibration Detection Time) sets the time after the input enters a calibration window before the value is
captured.
1000 = 1000 ms
FltDetTm U160–65535FltDetTm (Fault Detection Time) sets the time before an abnormal input causes the function block to set a Fault
Danfoss | February 201911062082 | AQ00000274en-000102 | 47
User Manual
PLUS+1® Compliant Function Block Library—Input Function Blocks
Sensor_3Pt_AC Function Block
Function Block Connections
Connections you can make with the function block are described.
Description
Item
1
2Bus interface for optional external inputs.
3Force the input to return to the sensor’s zero position before allowing non-zero output after fault, status, or startup conditions.
4Control and configuration of the built in calibration function.
5Latch all detected parameter faults, forcing controller power cycle before clearing.
6Latch all detected input faults, forcing controller power cycle before clearing.
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.
PLUS+1® Compliant Function Block Library—Input Function Blocks
Sensor_3Pt_AC Function Block
Status Logic
This topic describes how status logic is indicated for the function block.
ConditionHex
Block not calibrated.0x80010001Both Cal_1, Cal_2, and Cal_3 are
Block partially
calibrated.
Invalid configuration.0x80081000One of the parameters and/or
*
Bit 16 set to 1 identifies a standard Danfoss status or fault code.
Fault Logic
ConditionHex
Input value is too low.0x80010001Input value is lower than halfway
Input value is too high.0x80020010Input value is higher than
Open circuit.0x80040100Input value is close to ground
Short circuit.0x80081000Input value is close to Snsr Pwr.
*
Bit 16 set to 1 identifies a standard Danfoss status or fault code.
*
Binary CauseResponseCorrection
zero.
0x80020010One or two of the following are
zero: Cal_1, Cal_2, Cal_3. The
other(s) are non-zero.
Snsr Pwr is outside its defined
range.
Output = 0
This topic describes how fault logic is indicated for the function block.
*
Binary CauseResponseCorrection
Output = 0 after a delay of
between the lowest calibration
point and Snsr Pwr.
halfway between the highest
calibration point and Snsr Pwr.
(0).
FltDetTm.
Output = 0 after a delay of
FltDetTm.
Output = 0 after a delay of
FltDetTm.
If Cal Cmd = 1, then Cal_1,
Cal_2, and Cal_3 are both set to
zero.
Output = 0 after a delay of
FltDetTm.
Start calibration using Cal Cmd
and moving the sensor to each
extreme or set values through
the service tool.
Complete calibration using CalCmd and moving the sensor to
each extreme or set values
through the service tool.
Review function parameters to
ensure they are within their valid
ranges.
Ensure the ExpCal and Cal
values are correct for the sensor.
Verify there is no wire or sensor
failure.
Calibration and Fault Values
The graph shows how the function block sets high and low calibration points, as well as how s the high
and low fault values are determined based on the high and low calibration points.
The following graph shows how the:
Default Cal_3_Def value defines the Input value (in mV) that produces an Output value of 10000.
•
Default Cal_2_Def value defines the Input value (in mV) that produces an Output value of 0.
•
Default Cal_1_Def value defines the Input value (in mV) that produces an Output value of -10000.
•
Function block calculates the high and low fault values based on the high and low calibration points.
•
A CalCmd input of 2 applies default calibration values.
The function block has a Snsr Pwr input of 5000 mV.
Danfoss | February 201911062082 | AQ00000274en-000102 | 51
Configuration settings you define allow an auto-calibration procedure to capture high, medium, and low
calibration points.
The following graph shows how the:
ExpCal_3 and CalWin values define a window range in which an auto-calibration procedure can
•
capture a valid high calibration point.
ExpCal_2 and CalWin values define a window range in which an auto-calibration procedure can
•
capture a valid middle calibration point.
ExpCal_1 and CalWin values define a window range in which an auto-calibration procedure can
•
capture a valid low calibration point.
A CalCmd input of 1 enables an auto-calibration procedure to capture calibration values.
The function block has a Snsr Pwr input of 5000 mV.
500
1000
0
15002000
2500
3000
Input (mV)
35004000
4500
5000
-10000
-8000
-6000
-4000
-2000
0
2000
4000
6000
8000
10000
Output (10000 = 100.00%)
3000
Upper calibration window—a valid Cal_3 value (high calibration point) can only be captured in this 4250–4750 mV range
ExpCal_3 x Snsr Pwr—the upper calibration window centers on this value
Lower calibration window—a valid Cal_1 value (low calibration point) can only be captured in this 250–750 mV range
ExpCal_1 x Snsr Pwr—the lower calibration windowcenters on this value
ExpCal_2 x Snsr Pwr—the middle calibration window centers on this value
Middle calibration window—a valid Cal_2 value (middle calibration point)
can only be captured in this 2250–2750 mV range
Function Block Values
CalWin = 1000
ExpCal_3 = 9000
ExpCal_2 = 5000
ExpCal_1 = 1000
Cal_3 = To be captured in auto-calibration
Cal_2 = To be captured in auto-calibration
Cal_1 = To be captured in auto-calibration
Cal Cmd = 3
Snsr Pwr = 5000 mV
Calibration Window Formulas
Calibration window width (mV) = Snsr Pwr x CalWin
Center of upper calibration window = ExpCal_3 x Snsr Pwr
Upper calibration window range = ExpCal_3 ± (Calibration window width ÷ 2)
Center of middle calibration window = ExpCal_2 x Snsr Pwr
Middle calibration window range = ExpCal_2 ± (Calibration window width ÷ 2)
Center of lower calibration window = ExpCal_2 x Snsr Pwr
Lower calibration window range = ExpCal_1 ± (Calibration window width ÷ 2)
User Manual
PLUS+1® Compliant Function Block Library—Input Function Blocks
Sensor_3Pt_AC Function Block
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
Danfoss | February 201911062082 | AQ00000274en-000102 | 53
User Manual
PLUS+1® Compliant Function Block Library—Input Function Blocks
Sensor_3Pt_AC Function Block
IEC 61508-3 Annex D Supplemental Information
The following table provides IEC 61508-3 Annex D supplemental information.
Item
Function block nameSensor_3Pt_AC
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
Freq_to_RPM Function Block
The Freq_to_RPM block calculates a rotational speed using a frequency signal.
Typical uses for this function block include:
Showing engine, pump or motor speed on a vehicle dashboard display.
•
Closed-loop speed control.
•
Straight-tracking propel control.
•
Determining engine, pump, motor, wheel, and other work function speeds through a Pulse Pick Up
•
(PPU) sensor.
There is no built-in detection for hardware wire faults within this function block. If fault detection is
required, it must be added outside this function block.
Inputs
The inputs to the Freq_to_RPM function block are described.
Use only the data types specified in this table. Other data types cause compiler errors.
ItemTypeRangeDescription
ChkPtBOOL——
FreqU160–50000Frequency (Hz)—Signal from PPU or other similar device.
Puls/RevU160–50000Pulses Per Revolution—Number of pulses in one revolution.
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.
10 = 10 mm
10 = 10 pulse/revolution.
Outputs
The outputs of the Freq_to_RPM 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.
OutputU320–3000000Rotational speed based on the Freq and Puls/Rev inputs.
This output follows the standard bitwise scheme described in the Status Logic topic.
Danfoss | February 201911062082 | AQ00000274en-000102 | 55
User Manual
PLUS+1® Compliant Function Block Library—Input Function Blocks
Freq_to_RPM Function Block
Function Block Connections
Connections you can make with the function block are described.
Description
Item
1
2Used to monitor frequency of the sensor pulses.
3Configuration for setting the number of pulses per revolution.
4Outputs a bus with all of the function block's input and output signals.
5Reports the status of the function block.
6Reports the faults of the function block.
7Calculated RPM from the input signals.
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.
•
Status Logic
This topic describes how status logic is indicated for the function block.
ConditionHex
Invalid configuration.0x80081000Puls/Rev parameter is outside its
*
Bit 16 set to 1 identifies a standard Danfoss status or fault code.
*
Binary CauseResponseCorrection
Output signal is calculated using
defined range.
the parameters clamped to their
respective ranges.
Review function parameters to
ensure they are within their valid
ranges.
Fault Logic
This topic describes how fault logic is indicated for the function block.
ConditionHex
Input value is too low.0x80010001Freq < 0.Output = 0Verify the input signal is correct.
Input value is too high.0x80020010Freq > 50000.Output signal is calculated using
*
Bit 16 set to 1 identifies a standard Danfoss status or fault code.
*
Binary CauseResponseCorrection
Freq = 50000.
If a signed signal is received from
the sensor to indicated direction,
then use the absolute value.
Verify there is no noise
introduced to the input signal
and that the sensor’s output
range is within the Freq limit.
Danfoss | February 201911062082 | AQ00000274en-000102 | 57
User Manual
PLUS+1® Compliant Function Block Library—Input Function Blocks
Freq_to_RPM Function Block
IEC 61508-3 Annex D Supplemental Information
The following table provides IEC 61508-3 Annex D supplemental information.
Item
Function block nameFreq_to_RPM
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
Freq_to_Speed Function Block
The Freq_to_Speed block calculates a linear speed using a frequency signal.
Typical uses for this function block include:
Cruise control.
•
Closed-loop speed control.
•
Straight-tracking propel control.
•
Determining vehicle ground speed through a Pulse Pick Up (PPU) sensor on a motor.
•
There is no built-in detection for hardware wire faults within this function block. If fault detection is
required, it must be added outside this function block.
Inputs
The inputs to the Freq_to_Speed function block are described.
Use only the data types specified in this table. Other data types cause compiler errors.
ItemTypeRangeDescription
ChkPtBOOL——
FreqU160–50000Frequency (Hz)—Signal from PPU or other similar device.
Whl DiaU160–10000Effective diameter of the wheel.
Puls/RevU160–50000Pulses Per Revolution—Number of pulses in one revolution.
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.
10 = 10 mm
10 = 10 Hz
10 = 10 pulse/revolution.
Outputs
The outputs of the Freq_to_Speed 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.
PLUS+1® Compliant Function Block Library—Input Function Blocks
Freq_to_Speed Function Block
Function Block Connections
Connections you can make with the function block are described.
Description
Item
1
2Used to monitor frequency of the sensor pulses.
3
4Configuration for setting the number of pulses per revolution.
5Outputs a bus with all of the function block's input and output signals.
6Reports the status of the function block.
7Reports the faults of the function block.
8Speed output calculated from Freq, Whl Dia, and Puls/Rev.
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.
•
Configuration for setting the number of pulses per revolution.
Status Logic
This topic describes how status logic is indicated for the function block.
ConditionHex
Invalid configuration.0x80081000Puls/Rev or Whl Dia parameter
*
Bit 16 set to 1 identifies a standard Danfoss status or fault code.
Danfoss | February 201911062082 | AQ00000274en-000102 | 63
User Manual
PLUS+1® Compliant Function Block Library—Input Function Blocks
Freq_to_Speed Function Block
IEC 61508-3 Annex D Supplemental Information
The following table provides IEC 61508-3 Annex D supplemental information.
Item
Function block nameFreq_to_Speed.
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.
2800 East 13th Street
Ames, IA 50010, USA
Phone: +1 515 239 6000
Danfoss
Power Solutions Trading
(Shanghai) Co., Ltd.
Building #22, No. 1000 Jin Hai Rd
Jin Qiao, Pudong New District
Shanghai, China 201206
Phone: +86 21 3418 5200
Products we offer:
Comatrol
www.comatrol.com
Turolla
www.turollaocg.com
Hydro-Gear
www.hydro-gear.com
Daikin-Sauer-Danfoss
www.daikin-sauer-danfoss.com
DCV directional control
•
valves
Electric converters
•
Electric machines
•
Electric motors
•
Hydrostatic motors
•
Hydrostatic pumps
•
Orbital motors
•
PLUS+1® controllers
•
PLUS+1® displays
•
PLUS+1® joysticks and
•
pedals
PLUS+1® operator
•
interfaces
PLUS+1® sensors
•
PLUS+1® software
•
PLUS+1® software services,
•
support and training
Position controls and
•
sensors
PVG proportional valves
•
Steering components and
•
systems
Telematics
•
Danfoss Power Solutions is a global manufacturer and supplier of high-quality hydraulic and
electric components. We specialize in providing state-of-the-art technology and solutions
that excel in the harsh operating conditions of the mobile off-highway market as well as the
marine sector. Building on our extensive applications expertise, we work closely with you to
ensure exceptional performance for a broad range of applications. We help you and other
customers around the world speed up system development, reduce costs and bring vehicles
and vessels to market faster.
Danfoss Power Solutions – your strongest partner in mobile hydraulics and mobile
electrification.
Go to www.danfoss.com for further product information.
We offer you expert worldwide support for ensuring the best possible solutions for
outstanding performance. And with an extensive network of Global Service Partners, we also
provide you with comprehensive global service for all of our components.
Local address:
Danfoss can accept no responsibility for possible errors in catalogues, brochures and other printed material. Danfoss reserves the right to alter its products without notice. This also applies to products
already on order provided that such alterations can be made without subsequent changes being necessary in specifications already agreed.
All trademarks in this material are property of the respective companies. Danfoss and the Danfoss logotype are trademarks of Danfoss A/S. All rights reserved.