Материал: m012900e

Внимание! Если размещение файла нарушает Ваши авторские права, то обязательно сообщите нам

I/O modules • 247

TTY interface 750-651

Attention

The data transmission takes place at 9600 baud (default value). 1 start bit, 8 data bits and 1 stop bit will be transmitted. No parity is available. The drivers are high impedence. The control of data is made by the user software.

Attention

The TTY Interface is passive in sending and receiving, thus having no current sources. For data conversion, an active partner is needed or an additional current source has to be connected.

Receiver

with current source

20 mA

TxD

TxD

 

 

 

 

 

 

TxD

TxD

 

+

-

 

 

 

+

-

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Transmitter with

 

current source

 

20 mA

RxDRxD

RxDRxD

+ -

+ -

:$*2

:$*2

 

 

Current source

20 mA

Receiver

Current source 20 mA

Transmitter

TxD TxD

+-

RxDRxD

+-

:$*2

Current source

20 mA

Receiver

Transmitter

Point to point connection

Point to point connection with passive

with active subscribers

subscriber and additional current sources

Bus connection with a current source and a passive subscriber

Organization of the input and output data:

The module is a combination of an analog input and output module with 2 x 16 bit input and output data. The transfer of the data to be transmitted and the received data is made via 3 output and 3 input bytes. One control byte and one status byte are used to control the floating data.

Requests are indicated by a bit change of state. An assigned bit indicates execution by adopting the value of the request bit.

Up to 3 characters which have been received via interface can be stored in the input bytes 0 to 2. The output bytes will contain the characters to be sent.

The control byte consists of the following bits:

Bit 7

0

Constant value should always be 0.

Bit 6

Bit 5

Bit 4

OL 2

OL1

OL0

Frames available in output area OL2 is always 0,

i.e. OL2, OL1, OL0 = 0,1,1

3 characters should be sent and put into the output.

Bit 3

Bit 2

Bit 1

Bit 0

0

IR

RA

TR

Constant

Initialization

Receive

Transmit

value

request

acknow-

request

should

 

ledge

 

always be

 

 

 

0.

 

 

 

 

 

 

 

Modular I/O System

ETHERNET TCP/IP

248 I/O modules

TTY interface 750-651

The status byte consists of the following bits:

Bit 7

Bit 6

Bit 5

 

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

0

IL2

IL1

 

Il0

BUF_F

IA

RR

TA

Constant

rames available in input area IL2 is

Input

Initialization

Receive

Transmit

value should

 

always 0.

 

buffer is

acknow-

request

acknow-

always be 0.

i.e. IL2, IL1, IL0 = 0,1,0

full.

ledge

 

ledge

 

2 characters were received and

 

 

 

 

 

reside in input 0 and input 1.

 

 

 

 

The PLC is able to control transmission and reception of data by means of the control byte and the status byte.

Initialization of the module:

set IR bit in the control byte to "1"

transmit/receive functions are blocked

output/input buffers are erased

serial interface module will load its configuration data

Transmitting data:

TR≠ TA: put characters into output bytes 0 to 2

amount of characters is specified in OL0 to OL2

TR is inverted and read out

characters are put into output buffer if TR=TA

Receiving data:

RR≠ RA: input bytes 0 to 2 characters are available

amount of characters is specified in IL0 to IL2

characters in IL0 to IL2 are read out

RA is inverted and read out

all characters are read when RR=RA

The transmitting and receiving of data can be done simultaneously. The initialization request has prioirity and will stop the transmitting and receiving of data immediately.

Attention

Resetting the initialization bit can be performed with the following message.

Message: input buffer full (Bit 3)

Input buffer is full. Data which is being currently received is now lost.

Modular I/O System

ETHERNET TCP/IP

I/O modules • 249

TTY interface 750-651

An example:

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

Status byte

Input

Input

 

 

 

 

 

 

byte 0

 

byte 2

byte 1

 

XX

0XXX.X0XX

XX

XX

Module is still being reset.

XX

0XXX.X1XX

XX

XX

Initialization completed.

Sending of the data string "Hello” in ASCII code:

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

Output

 

Control

Output

Output

 

byte 0

 

byte

byte 2

byte 1

 

‘H’ (0 x

 

0011.0000

‘l’ (0 x 6C)

‘e’ (0 x 60)

Entering data to module

-The transmission request bit (TR) is inverted.

 

 

Output

 

 

Control

 

 

Output

 

 

 

Output

 

 

 

 

 

byte 0

 

 

byte

 

 

byte 2

 

 

 

byte 1

 

 

 

 

 

‘H’

 

 

0011.0001

 

 

‘l’

 

 

 

‘e’

 

 

Send Data

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Input

 

 

Status byte

 

 

Input

 

 

 

Input

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

byte 0

 

 

 

 

 

byte 2

 

 

 

byte 1

 

 

 

 

 

XX

 

 

0XXX.XXX0

 

 

XX

 

 

 

XX

 

 

The data is still being transferred.

 

 

XX

 

 

0XXX.XXX1

 

 

XX

 

 

 

XX

 

 

Data transfer completed.

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

Output byte 0

 

Control byte

Output byte 2

Output byte 1

‘l’

 

0010.0001

XX

‘o’ (0 x 6F)

-The transmission request bit (TR) is inverted.

Output byte 0

 

Control byte

Output byte 2

Output byte 1

‘l’

 

0010.0000

XX

‘o’

Modular I/O System

ETHERNET TCP/IP

250 I/O modules

TTY interface 750-651

- As soon as TA = TR, the data has been transferred to the output buffer.

 

 

Input

 

 

 

Status byte

 

 

Input

 

 

 

Input

 

 

 

 

byte0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

byte2

 

 

 

byte1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

XX

 

0XXX.XXX1

 

 

XX

 

 

 

XX

The data is still being transferred.

 

 

XX

 

 

 

0XXX.XXX0

 

 

XX

 

 

 

XX

Data transfer completed.

Receiving the character chain "WAGO”

 

 

-As soon as RA≠ RR, the input bytes contain data.

 

 

 

Output byte 0

Control byte

 

 

 

Output byte 2

Output byte 1

 

 

XX

 

0XXX.000X

 

 

 

 

XX

XX

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Input

Status

 

 

Input

 

 

 

Input

 

 

 

 

 

 

 

 

 

byte

 

 

 

 

 

 

 

 

 

 

 

byte0

 

 

 

byte2

 

 

 

byte1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

XX

0XXX.0X0X

 

 

XX

 

 

 

XX

No received data available.

 

 

‘W’

0011.0X1X

 

 

‘G’

 

 

 

‘A’

The information is in the input

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

bytes.

-After the 3 characters have been processed, RA is inverted.

Output

Control

Output

Output

 

byte 0

byte

byte 2

byte 1

 

XX

0XXX.001X

XX

XX

Command to read from input buf-

 

 

 

 

fer

-If RA≠ RR, the receiving of additional characters will continue.

Input

Status

Input

Input

 

byte 0

byte

byte 2

byte 1

 

XX

0XXX.0X1X

XX

XX

No received data available.

‘O’

0001.0X0X

XX

XX

The information is in the input

 

 

 

 

bytes.

-After the characters have been processed, RA is inverted.

Output byte 0

Control byte

Output byte2

Output byte1

XX

0XXX.000X

XX

XX

Attention

0 x 23 is a hexadecimal value

0101.1001 is a binary value

An X indicates that this particular value has no importance. XX indicates that the whole value has no importance.

Attention

For the process data configuration of these bus modules please refer to chapter "Process data architecture for MODBUS/TCP" in the process image description of the corresponding coupler/controller.

Modular I/O System

ETHERNET TCP/IP

I/O modules • 251

RS485C interface 750-653

4.8.1.1.3 RS485C Interface

750-653

 

13

14

 

Function

A

 

 

 

C

 

TxD

B

 

RxD

 

__D

 

TxD TxD

Data contacts

 

 

 

 

 

 

___

TxD

 

__

TxD

 

 

 

 

RxD RxD

 

 

 

 

___

RxD

 

 

RxD

 

M

M

 

Common

 

 

Common

(ground)

 

 

(ground)

 

S

S

 

Shield

 

 

Shield

(screen)

 

 

(screen)

 

750-653

 

Technical description

This technical description is only valid for hardware and software versions X X X X 2 C 0 3----. The product series number is printed on the right side of the module.

The following description is preliminary and is applicable to the factory preset configuration.

Many other operational modes are possible (please contact WAGO for the corresponding settings).

The interface module can operate with all WAGO-I/O-SYSTEM buscouplers (except for the economy type).

Modular I/O System

ETHERNET TCP/IP