B&B Electronics GW-7553 - Quick Start Guide User Manual

Page 8

Advertising
background image

¾ PROFIBUS output test

--Send Command to read DI of the GW-7553

The user needs to input command (” 01 02 00 00 00 10”) in MBTCP and
click <Send Command> button to send Modbus command and then MBTCP
can receive response message (” 01 02 02 00 00”). In this message, the user
can know the value of DI0 & DI1 is “0” in the GW-7553.

--Send output data to write DI of the GW-7553 by the PROFIBUS Master

The user needs to set “0xFE” & “0xDC” in byte 3 & byte 4 of output data
area of PROFIBUS Master device and then set the value of the first byte from
0 to 1 to trigger the data output command.

--Send command to read DI of the GW-7553 again

Now the user can input command (” 01 02 00 00 00 10”) in MBTCP and
click <Send Command> button to send Modbus command again. Then
MBTCP can receive response message (” 01 02 02 FE DC”). In this message,
the user can know the value of DI0 & DI1 have changed into “0xFE” &
“0xDC” in the GW-7553, as shown in the below.

Set output data and trigger output data command

Module Byte

Data

type Representation

Value

Output 0

Byte

Hex

0x00 → 0x01

Output 1

Byte

Hex

0x00

System

module

Output 2

Byte

Hex

0x00

Output 3

Byte

Hex

0x00→ 0xFE

Output

module

Output 4

Byte

Hex

0x00→ 0xDC

Send Modbus command to read DI of the GW-7553 and receive data (0xFE, 0xDC)

GW-7553 PROFIBUS/Modbus TCP Gateway Quick Start (Version 1.00, DEC/2008) PAGE:8

Advertising