Here is a sample script to receive Data from Hyper Terminal to a Magelis HMI using Script Driver:
// 1. Create script variables
// For reading messages from hyperterminal
int result;
byte readArray[]= new byte[20];
// 2. Read data from serial port
result = HyperTerminal.read(0, 20, readArray);
if (result <= 0) // Check for error
ReadText.write("ERROR"); // Write to variable
else
{
// Convert byte array to String
String temp = new String( readArray );
ReadText.write(temp);
}
Released for: Schneider Electric India




Need help?
Product Selector
Quickly and easily find the right products and accessories for your applications.
Get a Quote
Start your sales enquiry online and an expert will connect with you.
Where to buy?
Easily find the nearest Schneider Electric distributor in your location.
Help Centre
Find support resources for all your needs, in one place.