At a Glance

From a station with an address of 1 on Fipway network 20, we would like to read a character string sent by a video terminal (screen and keyboard) connected to the TER port of the PLC with a network address of 20, station 5.

This character string is stored in the Str_1 variable, the management table of the communication function being %MW110:4.

Illustration

The two stations are connected via a Fipway network.

Programming

Programming in ST:

IF RE(%I0.3.6) AND NOT %MW110.0 THEN
   INPUT_CHAR(ADDR(’{20.5}0.0.SYS’), 1, 0, %MW110:4, Str_1);
END_IF;

Request parameters:

Parameters

Description

ADDR(‘{20.5}0.0.0.SYS’)

  • {20.5} : network 20, station 5

  • 0 : rack

  • 0 : module

  • 0 : channel 0

  • SYS: system address (terminal port)

1

Reset

0

Read the entire character string

%MW110:4

Management table

Str_1

Variable of type STRING that is to receive the message