Elmomc Multi-Axis Motion Controller-Maestro Manuel d'utilisateur Page 232

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 313
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 231
1 2 ... 227 228 229 230 231 232 233 234 235 236 237 ... 312 313

Commentaires sur ces manuels

Pas de commentaire