Siemens SIMATIC TI500 Manual de usuario Pagina 61

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 94
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 60
Modbus Commands
C-12
TIWAY I Gateway User Manual
Modbus Function Descriptions (continued)
Code
05 allows a designated coil [discrete output Y or C, depending on the
position of Switch 10 on the network dipswitches] to be written. Depending
on the code passed in the data field, it can be changed to On (1) or Off (0),
forced On or Off, or unforced. The two-byte codes are the following.
FF00 (hex)
ON.
. . . . . . . . .
0000 (hex) OFF.
. . . . . . . . . .
NOTE:
All other values are illegal and will result in error response 03.
Where the Broadcast address (00) is used, the Gateway will send the change
coil command to all attached secondaries.
[This command is comparable to Primitive 30, using TT
-type 4 (Y coils) or
type 5 (Cs).]
Because
of differences in memory mapping between Modbus PLCs
and SIMA
TIC TI PLCs, you should be quite certain of the effects of
the broadcast command before issuing it.
Example:
I000000
Request: 07 05 0064 FF00 XXXX
Checksum (XXXX)
OFF/ON code (FF00 = On)
Coil address (0064)
Function code (05)
Slave address (07)
Figur
e C-13
Write
a Single Coil Example — Request
This request to secondary 7 is asking for coil 0064 (100 decimal) to be
changed to the on state.
Code 05 — W
rite a
Single Coil
WARNING
!
Vista de pagina 60
1 2 ... 56 57 58 59 60 61 62 63 64 65 66 ... 93 94

Comentarios a estos manuales

Sin comentarios