Examples:

The module is initialized.

-The initialization bit in the control byte is set.

Output byte 0 Control byte Output byte 2 Output byte 1

0x00

0000.0100

0x00

0x00

-After the initialization has been executed, the status byte will give back 000.0100.

Input byte 0

XX

XX

Status byte

0XXX.X0XX

0XXX.X1XX

Input byte 2

XX

XX

Input byte 1

XX

XX

Module is still being reset

Initialization completed

Sending of the data string “Hello”:

-The first 3 characters and the buffer length of 3 are transmitted.

Output byte 0

 

Control byte

‘H’ (0 x 48)

 

0011.0000

Output byte 2

 

Output byte 1

 

‘l’ (0 x 6C)

‘e’ (0 x 65)

 

 

 

 

 

-The transmission request bit (TR) is inverted.

Output byte 0

 

Control byte

‘H’

 

0011.0001

Output byte 2

 

Output byte 1

 

‘l’

‘e’

 

 

 

 

 

-As soon as TR=TA, the rest of the data can be sent.

Input byte 0

Status byte

Input byte 2

Input byte 1

XX

0XXX.XXX

XX

XX

 

0

 

 

XX

0XXX.XXX

XX

XX

 

1

 

 

The data is still being transferred.

Data transfer completed.

-The last 2 characters and the buffer length of 2 are transmitted.

Output byte 0

 

Control byte

‘l’

 

0010.0001

Output byte 2

Output byte 1

XX

‘o’ (0 x 6F)

-The transmission request bit (TR) is inverted.

Output byte 0

 

Control byte

‘l’

 

0010.0000

Output byte 2

Output byte 1

XX

‘o’

RS232,TTY,RS485￿￿￿￿￿￿￿￿

750-650,651,653

8

￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿:$*2Ç,￿2Ç6<67(0

Page 135
Image 135
Quatech INTERBUS S manual Examples, Module is initialized