Motion Coordinator Technical Reference Manual
Using the Trio ActiveX Control 12-27
Input / Output Commands
Send
Description:
Performs the corresponding
SEND(…)
command on the Motion Coordinator
Syntax:
Send(Destination, Type, Data1, Data2)
Parameters:
Return Value:
TrioPC STATUS
.
Setcom
Description:
Performs the corresponding
SETCOM(…)
command on the Motion Coordinator
Syntax
Setcom(Baudrate, DataBits, StopBits, Parity, [Port], [Control])
Parameters:
Return Value:
TrioPC STATUS
.
short Destination:
Address to which the data will be sent
short Type:
Type of message to be sent:
1. Direct variable transfer
2. Keypad offset
short Data1:
Data to be sent. If this is a keypad offset message then
it is the offset, otherwise it is the number of the vari-
able on the remote node to be set.
short Data2:
Optional numeric value that specifies the value to be
set for the variable on the remote node.
long BaudRate:
Baud rate to be set
short DataBits:
Number of bits per character transferred
short StopBits:
Number of stop bits at the end of each character
short Parity:
Parity mode of the port (0=>none, 1=>odd, 2=> even)
VARIANT Port:
Optional numeric value that specifies the port to set
(0..3)
VARIANT Control:
Optional numeric value that specifies whether to ena-
ble or disable handshaking on this port