Specification of the ADS system services
This section covers those ADS services which have identical meanings and effects with every TwinCAT ADS unit. In this section are also included services to access the PLC process diagram of the physical inputs and outputs.
Index |
Index |
Access |
Data type |
Description |
---|---|---|---|---|
0x0000F003 |
0x00000000 |
R&W |
W: UINT8[n] R: UINT32 |
GET_SYMHANDLE_BYNAME A handle (code word) is assigned to the name contained in the write data and is returned to the caller as a result. |
0x0000F004 |
0x00000000 |
|
|
Reserved. |
0x0000F005 |
0x00000000- 0xFFFFFFFF=symHandle |
R/W |
UINT8[n] |
READ_/WRITE_SYMVAL_BYHANDLE Reads the value of the variable identified by ‚symHdl' or assigns a value to the variable. The ‚symHdl' must first have been determined by the GET_SYMHANDLE_BYNAME services. |
0x0000F006 |
0x00000000 |
W |
UINT32 |
RELEASE_SYMHANDLE The code (handle) contained in the write data for an interrogated, named PLC variable is released. |
0x0000F020 |
0x0001F400- 0xFFFFFFFF |
R/W |
UINT8[n] |
READ_I - WRITE_I PLC process diagram of the physical inputs (%I field). Offset is byte offset. |
0x0000F021 |
0x000FA000- 0xFFFFFFFF |
R/W |
UINT8 |
READ_IX - WRITE_IX PLC process diagram of the physical inputs (%IX field). The index offset contains the bit address which is calculated from base offset (0xFA000) + byte number +8 + bit number |
0x0000F025 |
0x00000000 |
R |
ULONG |
ADSIGRP_IOIMAGE_RISIZEByte length of the PLC process diagram of the physical inputs. |
0x0000F030 |
0x0003E800- 0xFFFFFFFF |
R/W |
UINT8[n] |
READ_Q - WRITE_Q PLC process diagram of the physical outputs (%Q field). Offset is byte offset. |
0x0000F031 |
0x001F4000- 0xFFFFFFFF |
R/W |
UINT8 |
READ_QX - WRITE_QX PLC process diagram of the physical outputs(%QX field). The index offset contains the bit address which is calculated from the base offset (0x1F4000) + byte number *8 + bit number. |
0x0000F035 |
0x00000000 |
R |
ULONG |
ADSIGRP_IOIMAGE_ROSIZE Byte length of the PLC process diagram of the physical outputs. |
0x0000F080 |
0x00000000- 0xFFFFFFFF= n (number of internal sub-commands)n(max) = 500 |
R&W |
W: |
ADSIGRP_SUMUP_READ The write-data contains a list of multiple, separate AdsReadReq(IG, IO, Len, Data) sub-commands. The read-data contains a list of return codes followed by the requested data. |
0x0000F081 |
0x00000000- 0xFFFFFFFF= n (number of internal sub-commands)n(max) = 500 |
R&W |
W: |
ADSIGRP_SUMUP_WRITE The write-data contains a list of multiple, separate AdsWriteReq(IG, IO, Len, Data) sub-commands. |
0x0000F082 |
0x00000000- 0xFFFFFFFF= n (number of internal sub-commands)n(max) = 500 |
R&W |
W: |
ADSIGRP_SUMUP_READWRITE The write-data contains a list of multiple, separate AdsReadWriteReq(IG, IO, readLen, writeLen, Data) sub-commands. |
0x0000F083 |
0x00000000- 0xFFFFFFFF= n (number of internal sub-commands)n(max) = 500 |
R&W |
W: |
ADSIGRP_SUMUP_READEX The write-data contains a list of multiple, separate AdsReadReq(IG, IO, Len, Data) sub-commands.The read-data contains a list of return codes followed by the requested data. |
0x0000F084 |
0x00000000- 0xFFFFFFFF= n (number of internal sub-commands)n(max) = 500 |
R&W |
W: |
ADSIGRP_SUMUP_READEX2 The write-data contains a list of multiple, separate AdsReadReq(IG, IO, Len, Data) sub-commands.The read-data contains a list of return codes followed by the requested data. |
0x0000F085 |
0x00000000- 0xFFFFFFFF= n (number of internal sub-commands)n(max) = 500 |
R&W |
W: |
ADSIGRP_SUMUP_ADDDEVNOTE The write-data contains a list of multiple, separate AdsAddDeviceNotifications(IG, IO, Len, Data) sub-commands.The read-data contains a list of return codes followed by the requested notification handles. |
0x0000F086 |
0x00000000- 0xFFFFFFFF= n (number of internal sub-commands)n(max) = 500 |
R&W |
W: |
ADSIGRP_SUMUP_DELDEVNOTE The write-data contains a list of multiple handles.The read-data contains a list of return codes. |