Topic: DMD0490

Help File Version: 2.10.0.636

HSEDGE - Precise Edge to Edge Timing


The Precise Edge to Edge Timing (HSEDGE) instruction is a helper for the HSIO Edge Timing function. This helper instruction does not setup the high speed edge timing; that setup is still performed in the System Configuration. It does show the current status of the configured discrete input and the Device's associated structure fields, and it makes sure the discrete I/O points used in the high speed timing function shows up in the project's cross reference.

 

Note: the rung containing this instruction can not have any input ladder logic.

 

 


Parameters:

Note: Use the F9 key or click the 'three dot box' at the right edge of the parameter field to open the Default Element Selection Tool (the Element Picker or the Element Browser) or use the Down-Arrow key (Auto-Complete) on any parameter field to see a complete list of the memory locations that are valid for that parameter of the instruction.

 

High Speed Input Device selects which of the High-Speed Timers this instruction will manage. This can be any of the currently configured High-Speed Timers, or click the button with the gear symbol to open the Setup High-Speed I/O dialog where a new High-Speed Timer can be created, or the configuration for an existing one can be changed.

High Speed Input Structure is the associated structure for the selected High Speed Input Device. Useful High Speed Input Structure Members contains a list of the structure fields that you will likely need to use in the ladder logic in concert with this instruction.


Start / Stop Timing Edges shows which the edges (or edges) of the input pulses are configured to start and stop the timing.

 


If the selected Device is a Single Edge Timer, Edge Input 1 shows the discrete input this device uses for the Start and Stop Timing edge. If the selected Device is a Dual Edge Timer, this is the discrete input this device uses for the Start Timing edge.

 

If the selected Device is a Dual Edge Timer, Edge Input 2 shows the discrete input that was selected for the Stop Timing edge.

 


If enabled in the Edge Timer's configuration, the Scaled Frequency Filter (seconds) is a filtering algorithm that is applied during the calculation that defines how much 'weight' the current-value is given versus the latest-calculated-value. Filtering acts as a data smoothing function, balancing stability versus the responsiveness of the calculated value as it responds to changes in the input pulse rate. A large filter value gives more weight to the latest-calculated-value (and hence less weight to the current-value), producing a more stable value that responds more slowly to changes in the input pulse rate. A small filter value gives less weight to the latest-calculated-value (and hence more weight to the current-value), producing a less stable value but it responds more quickly to changes in the input pulse rate.

Select Do Not Change to use the Filter value in the Device configuration in the System Configuration.

 

Select Change Filter Time to use the value in this instruction. This can be any constant floating point value between 0.0 and 0.999999, or any numeric memory location containing a value in that range. A value of 0.0 will disable the Filter.

 

Clicking Configure Scale Settings... will open the Device Configuration dialog of the System Configuration where this value can be set.


Status Display:

The status display shows the current state of the .Acc, .LastTime, .FilterTimeConst, and ScaledValue (if enabled) structure members, and the current state of the discrete inputs used by this function.

 

 


See Also:

HSCNT - High Speed Counting

 

HSEDGE - Precise Edge to Edge Timing

 

HSPULSEC - Catch Pulse Input

 


Related Topics:

Configuring the HSIO High Speed Counting function.

 

Configuring the HSIO Edge Timing function.

 

Configuring the HSIO Pulse Catch function.