Maxon MODMAX MM-6280IND Manual de usuario Pagina 165

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 306
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 164
Toolbox 32 User Manual 1.47d www.cse-semaphore.com/mykingfisher
Page
165
Modbus Floating Point and Long Registers
Each float or long number is stored in two 16-bit registers. A Modbus device stores the two 16-bit registers in
reverse order to a Kingfisher RTU (Kingfisher RTUs store the lower 16 bits in the lower register number).
Before using floats or longs from a Modbus device or writing floats or longs to a Modbus device, the two 16-
bit registers used for each float or long will need to be swapped as illustrated below.
Poll floats from Modbus device RTU100
DoEvery10sec P2 Waiting Poll Floats
#YTICK.10SEC #YPST2.2 RTU 100
├─────┤ ├─────────────────────────────────────────────────┤/├───────(RX_MBUS)──┤
41001
Swap floating point register order after new data received.
RTU100 Succ SwapFloatReg
#YLSUCC100 #NR100.64
├──[CHANGE]─────────────────────────────────────────────────────────(MCopy)───┤
#NR100.1
Figure: Example ladder logic used to poll 2 Modbus floating point numbers and then swap the 16-bit register
order (note: #NR100.64 is used for temporary storage).
Vista de pagina 164
1 2 ... 160 161 162 163 164 165 166 167 168 169 170 ... 305 306

Comentarios a estos manuales

Sin comentarios