DioGetExternalJumpATriggerMode

Applies To

GX5150, File.

Purpose

Returns the trigger mode for the external Jump A line.

Syntax

DioGetExternalJumpATriggerMode (nMasterHandle, pnTriggerMode, pnStatus)

Parameters

Name

Type

Comments

nMsterHandle

SHORT

Master or File board handle.

pnTriggerMode

PSHORT

Trigger modes are as follow:

0  Disable external Jump A.

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

2  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 edge, then the rising edge of the external signal will create the event. If the selection is level, 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

DioSetupExternalJumpATriggerMode, DioGetErrorString