here to help, if someone is offended by the suggestions, just delete the thread
This has come out of doing the notepad++ autocomplete + styling addin
I suspect that the following function return "int" and not "void"
Function: int Getanaloginput(int channel)
Description: This function returns the actual value of an analog input channel signal. The parameter defines the channel to be read. If the device has no analog input channel with the channel number called then the return value will be -1. The valid return range for the function is 0-65535.
Example: int analogin1 = exec.Getanaloginput(1);
Function: int Getanalogoutput(int channel)
Description: This function returns the actual value of an analog output channel signal. The parameter defines the channel to be read. If the device has no analog output channel with the channel number called then the return value will be -1. The valid return range for the function is 0-65535.
Example: int analogout1 = exec.Getanalogoutput(1);
typographical error: I've corrected the speechmarks, so if like me, someone else copies the example function and then edits it it will display & run correctly
Function: void Code(string code)
Description: This function is the most complex of all, it makes it possible to execute G-code from inside a macro. The G-code is sent as a string in the parameter of the function and is interpreted at execution time.
Example: exec.Code("G0 X10 Y20 Z0");
A few missing functions, that can be added to the file for completeness:
Function: void exec.AddStatusmessage( string StatusMessage )
Description: Adds a message to the Status Listbox
Example: exec.AddStatusmessage( "Check Ohmic Probe" );
Function: void AS3.Additemtolist(string val, int labelnumber)
Description: Adds a string value to a Listbox with the corresponding labelnumber.
Example: AS3.Additemtolist( "Check Ohmic Probe" , 18);
Modbus Macros Functions:
ushort[] GetAllModbusArray()
Reads the whole modbus register table.
bool SetModbusregister(int Registernumber, ushort Value)
Writes a single register in the modbus register table.
bool SetModbusregisters(int Startregister, ushort[] Values)
Writes multiply registers in the modbus register table.
bool GetModbusregister(int Registernumber, out ushort Value)
Reads a single register from the modbus register table.
bool GetModbusregisters(int Startregister, int Registercount, out ushort[] Values)
Reads multiply registers from the modbus register table.
void WriteModbusString(string String, int Startregister, bool HightoLowByteorder)
Converts a string into an ushort array and writes it into the modbus register table.
In the functions where the return value is boolean indicates if the function got executed with
or without problems. The true return value means that the function executed without
problems while false means that a problem has occurred and the retrieved variable(s) values
may be corrupt.