At a Glance

Let us assume we want to send a character string to a video terminal connected to the built-in link of the TSX SCY 21601 module of a PLC with a network address of 20, station 3. The TSX SCY 21601 module is located in slot 2 of the base rack.

The management table is located in %MW110:4 and the string to be sent is located in the variable Str_1.

Illustration

The two stations are connected via a Fipway network.

Transmission

Programming in ST:

IF RE(%I0.3.6) AND NOT %MW110.0 THEN
   PRINT_CHAR(ADDR(’{20.3}0.2.0.SYS’),Str_1,%MW110:4);
END_IF;

Request parameters:

Parameters

Description

ADDR(‘{20.3}0.2.0.SYS’)

  • {20.3}: network 20, station 3

  • 0: rack

  • 2: module

  • 0: channel 0

  • SYS: system address

Str_1

Character string to send, variable Str_1 is of type STRING.)

%MW110:4

Management table

NOTE: Each time the function is launched, initialize the length parameter (in the example: %MW113) with the value corresponding to the number of characters (in bytes) to send to Str_1).