{
  "id": 17362391,
  "title": "CODESYS Applied Practice — Axes (Part 1)",
  "url": "https://urgent.news/2026/10/31/codesys-applied-practice-axes-part-1",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-31T07:39:52.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/zhouyongh/codesys-applied-practice-axes-part-1-3l6h"
  },
  "original_language": "en",
  "account": "In the CODESYS Applied Practice series, Part 1 explores the concept of axes in motion control within the CODESYS environment. The previous lesson built a minimal host/controller loop with three hand-rolled axes using FB_SimAxis, which parsed commands and climbed position. However, this lesson introduces a real axis.\n\nTo understand axes, one must first grasp the motion control aspect. An axis can be thought of as the motion counterpart of a control object, featuring setpoints and status on one side, and drive, motor, and encoder on the other. These components are bound together through mapping.\n\nMotion control functions blocks (FBs) share a common timing structure: execute edge, busy, done, and error. The CiA 402 standard for drives follows a similar state machine, progressing from \"Not ready to switch on\" to \"Switched on\" and then \"Operation enabled.\"\n\nThree key boundaries exist in this context: the Motion API (MC_*), the axis object (state and setpoints), and the drive profile (CiA 402 or fieldbus). While the program code remains the same, the backend implementation can be either simulated or real, allowing for flexibility in development.\n\nIn summary, a logical axis and a physical axis may appear different, but they share a consistent mapping and timing structure. The CiA 402 standard serves as the drive language, enabling the same program to run seamlessly on both simulated and hardware targets.",
  "summary": "Environment: CODESYS V3.5 SP22 | Target: CODESYS Control Win V3 x64 simulation Overview The previous lesson built a minimal host/controller loop: three axes that were hand-rolled — FB_SimAxis parsed commands and climbed position itself. The motion was real; the axes were fake. This lesson meets a real axis. What is an axis? Start from motion control. In short: an axis is the motion counterpart of…",
  "key_points": [
    "Axes in motion control explained using CODESYS environment",
    "Motion control functions blocks share common timing structure",
    "CiA 402 standard enables same program on simulated and hardware targets"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}