Difference between revisions of "External Data Input"
From Zenitel Wiki
Line 1: | Line 1: | ||
The EDI ports are defined in AlphaPro: [[Exchange_%26_System_%28AlphaPro%29#Serial_Ports|Exchange & System -> Serial Ports]]. | The EDI ports are defined in AlphaPro: [[Exchange_%26_System_%28AlphaPro%29#Serial_Ports|Exchange & System -> Serial Ports]]. | ||
* The input message must have a termination character | * The input message must have a termination character | ||
− | * Maximum 128 characters. If more than 128, the first 128 characters will be returned. | + | * Maximum 128 characters. If more than 128, the first 128 characters will be returned, the rest is ignored. |
* Parsing the content is done in the action string in the Event Handler | * Parsing the content is done in the action string in the Event Handler | ||
Revision as of 11:10, 11 March 2016
The EDI ports are defined in AlphaPro: Exchange & System -> Serial Ports.
- The input message must have a termination character
- Maximum 128 characters. If more than 128, the first 128 characters will be returned, the rest is ignored.
- Parsing the content is done in the action string in the Event Handler
Event description
Event Owner: | EDI Text Config |
Event type: | 28 - External Data Input |
Subevent: | 1 – 10: specifies which EDI port 0: matches all ports |
When change to ON: | When valid data is received on EDI port |
When change to OFF: | N/A |
When related to: | N/A |
Additional information
- Context parameters
- Useful macros and statements
- Note: The NUL character (ASCII 0x00) cannot be used in the EDI string. The processing of the string will be terminated when receiving NUL.
Example
The rule below will allow you to issue commands to EDI port like this:
- Input command on EDI serial port: connect,101,103
- - Generates internal command $CALL L101 L103
- Input command on EDI serial port: disconnect,101,103
- - Generates internal commands $C L101
tmp 0 "%scutf(%edi,\,,0)" tmp 1 "%scutf(%edi,\,,1)" tmp 2 "%scutf(%edi,\,,2)" if %scmp(%tmp(0),connect) $CALL L%tmp(1) L%tmp(2) stop endif if %scmp(%tmp(0),disconnect) $C L%tmp(1) endif