User Tools

Site Tools


kb:production:s7-communication:write

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
kb:production:s7-communication:write [2019/11/08 09:38]
joerg.hampel [Response]
kb:production:s7-communication:write [2019/11/14 09:16]
joerg.hampel [Response]
Line 25: Line 25:
 ^Fixed Part ^^^ ^Fixed Part ^^^
 |[0]   |''0x00''    |Error Code  | |[0]   |''0x00''    |Error Code  |
-|[1]   |''0x04''    |[[kb:production:s7-communication:constants#variable_types|Variable Type]] +|[1]   |''0x……''    |[[kb:production:s7-communication:constants#transport_data_types|Transport Data Type]] (depends on variable type)  | 
-|[2-3] |''0x…… ……'' |Count (number of elements of type //Variable Type// to write)  |+|[2-3] |''0x…… ……'' |Count (number of elements of type //Transport Data Type// to write)  |
 ^Variable Part ^^^ ^Variable Part ^^^
 |[4-n] |    |Data to write  | |[4-n] |    |Data to write  |
Line 38: Line 38:
 ^Fixed Part ^^^ ^Fixed Part ^^^
 |[0-1] |''0x…… ……'' |Error Code  | |[0-1] |''0x…… ……'' |Error Code  |
-|[2]   |''0x0…''    |Read Variable = ''0x04'', Write Variable = ''0x05'' +|[2]   |''0x05''    |Function Code (Write = ''0x05''
-|[3]   |''0x01''    |Item Count (only 1 item)  | +|[3]   |''0x……''    |Item Count  |
-|[2]   |''0x12''    |Spec type (Variable Specification = ''0x12''+
-|[3]   |''0x0A''    |Parameter length +
-|[4]   |''0x10''    |Syntax ID (addressing mode "any-type" = ''0x10''+
-|[5]   |''0x……''    |[[kb:production:s7-communication:constants#variable_types|Variable Type]] +
-|[6-7] |''0x…… ……'' |Count (number of elements of type //Variable Type// to read or write) +
-|[8-9] |''0x…… ……'' |Address of the data block in memory to read  | +
-|[10]  |''0x……''    |[[kb:production:s7-communication:constants#memory_areas|Memory Area]] +
-|[11-13] |  |offset of the addressed variable in the selected memory area (start address)  |+
  
 === Data === === Data ===
  
---+|<100% 10% 15% >| 
 +^Byte  ^Value   ^Description       ^ 
 +^Fixed Part ^^^ 
 +|[0]   |''0x……'' |Item Return Code (one byte per item, ''0xFF'' = success) 
kb/production/s7-communication/write.txt · Last modified: 2019/11/14 09:16 by joerg.hampel