Cmd_set_extension_port, Description of the mca527 firmware commands – GBS Elektronik MCA-527 Firmware Commands User Manual
Page 23
Description of the MCA527 Firmware Commands
MCA Extension Port Commands:
Command name
CMD_SET_EXTENSION_PORT
Compatibility
New MCA527 command.
Execution right
Necessary
Description
The command configures the parts of the extension port. It is only available if the MCA527 version
supports the extension port (see “MCA features”, CMD_QUERY_STATE527, byte offset 8) otherwise
the command will return “not handled”.
The extension port consists of up to six configurable parts. The availability of the parts is depending
on the MCA527 version. It is returned by CMD_QUERY_STATE527_EX, byte offset 30.
The command accepts each combination of the following settings with one exception, part A cannot
be configured at once with part B and/or part C as RS232 interface.
Part A:
0 = EXT_PORT_OFF
4 = EXT_PORT_RS232
5 = EXT_PORT_RS232_BUFFER
Part B and D:
0 = EXT_PORT_OFF
1 = EXT_PORT_PULSER_COMMON_START
2 = EXT_PORT_PULSER_SEPARATE_START
3 = EXT_PORT_OUTPUT
4 = EXT_PORT_RS232 (Part B only)
4 = EXT_PORT_LOOP_THROUGH (Part B only)
Part C and E:
0 = EXT_PORT_OFF
1 = EXT_PORT_COUNTER
2 = EXT_PORT_TRIGGER
3 = EXT_PORT_INPUT
4 = EXT_PORT_RS232 (Part C only)
5 = EXT_PORT_RS232_BUFFER (Part C only)
Part F:
0 = EXT_PORT_OFF
1 = EXT_PORT_ON
2 = EXT_PORT_ON_AT_START_UP
Format
integer
integer
char
char
char
char
char
char
integer
Parameter
preamble
command
a
b
c
d
e
f
end flag
Byte string (HEX)
A5
5A
1A
01
a
b
c
d
e
f
B9
9B
23 The last 1024 data bytes that have been received up to the measurement stop are stored in the buffer.
24 In this mode the pulsers are started and stopped in common with the measurement but it is still possible to start with
CMD_START_EXTENSION_PULSER and to stop with CMD_STOP_EXTENSION_PULSER.
25 In this mode the pulsers can only be started with CMD_START_EXTENSION_PULSER and stopped with
CMD_STOP_EXTENSION_PULSER.
26 There are special hardware configurations that allow to loop through the signal from an input pin (part C or E) to this output pin.
This feature replaces however the possibility to use this part for RS232 (TX).
27 The power output remains turned on as long as the MCA527 remains turned on or until it is turned off by this command.
28 The power output will be automatically turned on at power-up of the MCA527.
23