pdcomm::formattedProgramTransferCommandCode
Function
Returns the CCODE of one command of a received S7F23.
inline SecsItem formattedProgramTransferCommandCode(const GemResult &result, size_t index)Parameters
| Name | Description |
|---|---|
result | Formatted program transfer result that carries a program. |
index | Zero-based command position. |
Returns
An independently owned item.
Notes
- Throws
pdcomm::Error:PDCOMM_INVALID_STATEwhen the result carries no program;PDCOMM_OUT_OF_RANGEfor an invalidindex.