ProSoft Technology MVI56E-GSC/ GSCXT User Manual

Page 107

Advertising
background image

MVI56E-GSC ♦ CompactLogix or MicroLogix Platform

Reference

Enhanced Generic ASCII Serial Communication Module

User Manual

ProSoft Technology, Inc.

Page 107 of 140

May 9, 2014

The idea is that your application-specific logic will first load the
GSC.DATA.PortX.WriteString array with the values or ASCII string character that
you wish to have sent. Then, to trigger the transmission, your application-specific
logic will load into the GSC.DATA.PortX.WriteLength tag a value equal to the
number of characters in the string. As soon as the sample ladder detects a non-
zero value in the range of 1 to 4096 in this tag, it will begin to transfer data from
the GSC.DATA.PortX.WriteString array into the output image and send it to the
module. When the module receives data in the output image, it will transmit that
data out the serial port.

GSC.DATA.PortX.WDelay
This parameter reflects the number of the milliseconds to wait between each
character is sent from the port. Valid parameter for this parameter is from 1 to
32767.

GSC.DATA.PortX.WriteString
The tag arrays, GSC.DATA.PortX.WriteString, are arrays of 4096 single-byte
integer values, capable of holding binary byte values, which can also be
interpreted as ASCII codes for alpha-numeric string characters. The ladder logic
will get all application serial port data to be sent to be transmitted out the port
from this array. If the string to be transmitted is larger than 200 characters,
multiple block transfers will be required to send the entire string to the module
from the WriteString array.

Advertising