ElmoMC Multi-Axis Motion Controller-Maestro User Manual
Page 232

Example:
slave.shutdownServer()
int retVal = isStarted()
Returns if server has been started up
Example:
if(slave.isStarted())
slave.
shutdownServer()
end if
int retVal = connectionStatus()
Checks if a MODBUS master is polling periodically
Example:
if(slave.connectionStatus())
TRACE(“A master is polling at a frequency higher than the master
transmit time-out value”)
else
TRACE(“No master is polling within the time-out period”)
end
if
Holding registers data access (Table 4:00000):
Data Access Methods to support read and write of output registers (holding
registers) in table 4:00000.
int retVal = holdingRegisters[int address]
holdingRegisters[int address] = int val
Read and write single holding register.
Parameters:
address – holding register address (range: 1 - 65536)
Example:
intVal = slave.holdingRegisters[i]
slave.holdingRegisters[2]=12345
Input registers data access (Table 3:00000):
Data Access Methods to support read of input registers in table 3:00000.
int retVal = inputRegisters[int address]
Read single input register.
Maestro
Software Manual
Ethernet/IP Communication
MAN-MASSW (Ver. Q)
12-12