SIXpack 2 – Manual (V1.10 / January 29
th
, 2010)
22
SIXpack 2
1: RXD
2: TXD
3: CTS
4: RTS
5: GND
6: GND
7: Analog In (0..5V)
8:TTLOUT1(270 Ohm)
9:TTLIO1 (270 Ohm)
10: 5V (120mA)
1
2
3
4
5
6
7
8
9
10
Figure 6.1: Pinning of multifunctional connector “RS232”
Pin
Use
Description
1, 2, 3, 4
connected directly to the
sub-D-connector
of
the
RS232 interface
electrically identical with the interface at the sub-D connector and can
not operate independent
5, 6
ground
7
analog input (0..5V)
value readout with command
GetInputValues
(CMD $30)
8
digital output (TTL)
TTL levels, internal resistor 270Ω. Value readout with command
SetOutputs
(CMD $32) in variable TTLOUT1. Function “Ready output” is
activated if TTLOUT1_READY is set.
9
digital I/O port (TTL)
TTl levels, internal resistor 270Ω. Command
SetOutputs
(CMD $32) :
TTLIO_INPUT = 0: Output, set with variable TTLIO1
TTLIO_INPUT = 1: Input, value readout with
variable TTLIO1 of
GetInputValues
(CMD $30).
10
output, max 5V, 120 mA
Table 6.1: Pin description of multifunctional connector “RS232”
6.1.5
RS 232-Remote Control via CAN-Interface
The RS 232-interface can be controlled via CAN. Therefore the baud-rate is set via command “RS 232-change baud-
rate“. Only 8 bit, 1 stop bit and no parity is possible. Of course 7 bit and parity could be simulated by the user. The
response address for bytes received via RS 232 and the packet size for transferring received bytes are configured
by a separate instruction.
To forward bytes received via CAN to RS 232, the CAN-address of the PACK is incremented by 1, i.e. the lower 3
bits are “001“. Every byte which is received with this address will be transferred to the RS 232-interface. 1 to 8
bytes can be transferred at once. Please note that the RS 232-interface needs sufficient time before the next block
is transmitted. To be sure that the RS 232-cache is empty, it can be checked via command. There is no CTS-
handshake, however the CTS-line can be read-out (s. CMD $44).
Bytes received via RS 232 will be sent to the pre-set response address, as soon as the pre-set number of bytes has
been received. Incorrect messages will be ignored now. If the configurable RS 232-timeout has expired, remaining
bytes will be sent ( see CMD $41).
6.2
Programming
The concept programming the SIXpack 2 is based on dataset of a fixed length. To allow networks the datasets
have to contain the SIXpack 2 address.