Elmomc Multi-Axis Motion Controller-Maestro Instrukcja Użytkownika Strona 232

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 313
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 231
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
Przeglądanie stron 231
1 2 ... 227 228 229 230 231 232 233 234 235 236 237 ... 312 313

Komentarze do niniejszej Instrukcji

Brak uwag