Skip to content
Start free evaluation

pdcomm::formattedProgramTransferCommandCode

Function

Returns the CCODE of one command of a received S7F23.

inline SecsItem formattedProgramTransferCommandCode(const GemResult &result, size_t index)

Declared in: #include <pdcomm_gem_formatted_program_transfers.hpp>

Parameters

NameDescription
resultFormatted program transfer result that carries a program.
indexZero-based command position.

Returns

An independently owned item.

Notes

  • Throws pdcomm::Error: PDCOMM_INVALID_STATE when the result carries no program; PDCOMM_OUT_OF_RANGE for an invalid index.