User Tools

Site Tools


Sidebar

Home



PlanetCNC SDK


TNG API

  About

  Functions

   Memory
    FreeString
    FreeStringW

   Callback
    SetInitialiseCB
    SetRefreshCB
    SetOpenCB
    SetOutputCB
    SetOutputWCB
    SetIdleCB
    SetLineNumCB

   Run & Exit
    Run
    RunProfile
    RunProfileW
    Exit
    ExitForce

   Run status
    GetVer
    GetLibPath
    GetLibPathW

    IsRunning
    IsRunningExt
    IsInitialized
    GetDateTime

   Version & Profile Info
    GetVersionString
    GetVersionStringW
    GetProfileNameString
    GetProfileNameStringW
    GetProfilePathString
    GetProfilePathStringW
    GetDescriptionString
    GetDescriptionStringW

   Screen
    IsVisible
    SetVisible
    Show
    Hide
    SetProgress
    SetStatus
    SetStatusW
    Msg
    MsgW
    Print
    PrintW

   Parameters & Eval
    GetParam
    GetParamW
    GetParamStr
    GetParamStrW

    SetParam
    SetParamW
    SetParamStr
    SetParamStrW

    Evaluate
    EvaluateW

   State
    IsLicenseValid
    IsUIReady
    IsControllerReady
    IsControllerRunning
    IsProgramLoaded

    IsIdle
    IsEStop
    IsStop
    IsPause
    IsProg
    IsCmd
    IsJog

   Machine Command Status
    IsEStopEnabled
    IsStopEnabled
    IsPauseEnabled
    IsStartEnabled
    IsOutputEnabled
    IsCodeEnabled
    IsCodeExEnabled
    IsOpenEnabled
    IsCloseEnabled

    SpeedOverrideEnabled
    SpindleOverrideEnabled
    PauseEnabled
    PauseOptional

   Machine Commands
    EStop
    EStopToggle
    Stop
    Pause
    PauseToggle

    Start

    Open
    Close

    MoveAxis
    Move3
    Move9

    Output
    OutputPWM
    OutputRC

    ExtOut

   Machine Commands Generic
    GetCmdCount
    GetCmdId
    GetCmdIdW

    IsCmdEnabled
    IsCmdChecked

    GetCmdName
    GetCmdNameW
    GetCmdDisplayName
    GetCmdDisplayNameW

    CmdExec

    CmdExecStr
    CmdExecStrW
    CmdExecVal
    CmdExecIntVal

   Helpers
    OpenFn
    OpenFnW
    OpenCode
    OpenCodeW

    TestFn
    TestFnW
    TestCode
    TestCodeW

    StartFn
    StartFnW
    StartCode
    StartCodeW

    Python
    PythonW

   G-Code
    GetFn
    GetFnW
    GetLineCount
    GetLine
    GetLineW
    GetLineNum

   Info
    InfoIsInitialized
    InfoSerial
    InfoHWVersion
    InfoSWVersion
    InfoIsVersionValid

    InfoBufferAvailable
    InfoBufferUtilization

    InfoWorkPosition
    InfoWorkPosition3
    InfoWorkPosition9

    InfoMotorPosition
    InfoMotorPosition3
    InfoMotorPosition9

    InfoWorkUnitsPosition
    InfoWorkUnitsPosition3
    InfoWorkUnitsPosition9

    InfoMotorUnitsPosition
    InfoMotorUnitsPosition3
    InfoMotorUnitsPosition9

    InfoSpeed
    InfoAcceleration

    InfoSpindle
    InfoSpindleIdx
    InfoSpindleEnc
    InfoSpindleSet

    InfoOutput
    InfoOutputFreq
    InfoOutputDuty

    InfoInput
    InfoLimit
    InfoJog
    InfoJogPot
    InfoAux

   Points
    PointsCount
    PointsClear
    PointsAdd3
    PointsAdd9

   Jog
    JogStop
    Jog
    Jog9

   THC
    THC

   G-Code Lines
    LineListCreate
    LineListFree

    LineListClear
    LineListCount

    LineListAddAllowed
    LineListAdd
    LineListAddW

    LineListGet
    LineListGetW

    LineListLoadFromFile
    LineListLoadFromFileW

    OpenLineList
    TestLineList
    StartLineList

Python

Named Pipes

sdk:api:getprofilepathstring

GetProfilePathString()

Returns profile path.

Use FreeString to release returned string.

Syntax

char* GetProfilePathString();

Parameters

Return Value String with profile path

Examples

char* str = GetProfilePathString();

result:

C:\Program Files\PlanetCNC\Profiles\

See also

sdk/api/getprofilepathstring.txt · Last modified: 2023/12/14 12:10 by andrej

Page Tools