DioSetupExternalJumpATriggerMode

Applies To

GX5150, File.

Purpose

Sets the trigger mode for the external Jump A line.

Syntax

DioSetupExternalJumpATriggerMode (nMasterHandle, nTriggerMode, pnStatus)

Parameters

Name

Type

Comments

nMsterHandle

SHORT

Master or File board handle.

nTriggerMode

SHORT

Trigger modes are as follow:

  1. Disable external Jump A.

  2. Enable external Jump A to trigger when low level is present.

  3. Enable external Jump A to trigger when low to high transient occurs.

pnStatus

PSHORT

Returned status: 0 on success, negative number on failure.

Comments

If the selection is “Enable external”, then the rising edge of the external signal will create the event. If the selection is low to high transient, then a low level will enable the rising edge internal clock to create the event.

This function applies only for “External Jump A” line located on the I/O Control connector.

The board must be in either the HALT or PAUSE state.

Example

The following example enables an external Jump A for level sense mode. A constant low level will cause a continuous execution of Jump A. Calls the DioGetExternalJumpATriggerMode function to verify the setting.

 

SHORT   nStatus, nMode;

DioSetupExternalJumpATriggerMode (nHandle, 2, &nStatus);

DioGetExternalJumpATriggerMode (nHandle, &nMode, &nStatus);

 

See Also

DioGetExternalJumpATriggerMode, DioGetErrorString