Technical FAQs

Ask a Question

Which Script Methods are available for Script Driver for Magelis HMIs in Vijeo Designer?

The Read and Write Methods are available for Script Driver:

boolean ScriptDriverName.write(boolean clearBuffer, int numOfBytes, byte[] data );
Returns true when the data is successfully written to the driver's buffer. Otherwise, returns false.

int ScriptDriverName.read(int timeout, int numOfBytes, byte[] data );
Returns the number of bytes received

Examples:

ScriptDriver.write(true, 8, SendPacket);
ScriptDriver.read(100, 7, RecvPacket);

Was this helpful?
What can we do to improve the information ?