Skip to content

CLang


The C language has been widely used in the field of industrial automation due to its ability to perform low-level hardware operations and provide high-performance, real-time control of industrial processes. With C, programmers can directly access hardware resources such as I/O ports, timers, and interrupts, which are essential for industrial automation applications.

In addition, C language is often used to create function block diagrams, a graphical programming language commonly used in industrial automation to describe the behavior of a control system. A function block diagram is a collection of interconnected blocks, each representing a function or operation, which can be used to design and implement complex control systems. With C language, developers can create software function blocks that can be used in function block diagrams, enabling the integration of software and hardware control systems.


How to Use CLang

  1. Drag and drop the desired CLang function block from the Language tab of the Toolbox panel onto your device.
  2. Double-click on the block to open the C editor and write C code following the syntax and rules of the programming language to achieve the desired functionality.
  3. Once you have completed the programming process, click on the checkmark icon in the top-right corner of the editor to save and exit. Your function block is now ready to be used.

Sample Usage


See Also