# API Documentation

This chapter provides a reference of all functions, function blocks, and UDTs defined in the SDK.

Note

All FBs/FCs/UDTs start with the prefix “GracoPd2kInt_” in the SDK project files. This helps prevent naming collisions if multiple SDKs are used in the same PLC program.

- GracoPd2kInt API
  - Functions (FC)
    - DecodeDateTime
    - DecodeEventCode
    - DecodeUserID
    - EncodeUserID
    - GetDataBySlotNum
    - SetDataBySlotNum
    - StatusToUDT
  - Function Blocks (FB)
    - GunControl
    - PumpControl
    - ReadAlarmInfo
    - ReadEventInfo
    - ReadFluidControlMode
    - ReadFlushSeq
    - ReadGunContents
    - ReadJobInfo
    - ReadMixFillSP
    - ReadPreset
    - ReadPumpMaterial
    - ReadRecipe
    - ReadRecipePotLifeTime
    - ReadUserID
    - SendDCS
    - WriteFluidControlMode
    - WriteFlushSeq
    - WriteMixFillSP
    - WritePreset
    - WriteRecipe
    - WriteUserID
  - UDTs
    - TypeDcsAckFlags
    - TypeEnableCmdState
    - TypeExecuteCmdState
    - TypeFunctionCmdState
    - TypeGunControls
    - TypePd2kIntGunModeFlags
    - TypePd2kIntPumpStatusFlags
    - TypePd2kIntStatus
    - TypePd2kIntSystemModeFlags
    - TypePumpControls
    - TypeTarget