Skip to content

Programmable automation controller (PAC) main program

License

Notifications You must be signed in to change notification settings

KirillGutyrchik/ptusa_main

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ptusa

GitHub Actions CI codecov Language grade: C/C++

Russian readme is here.

Common description

Controller logic implemented by Lua-script. At runtime, control is passed through special Lua functions that are responsible for the various stages of the control program.

  1. The general schema of controller program work:

Clone repository

  1. Controller program loop looks like:

Clone repository

  1. When operation turn on/off happens next:

Clone repository

  1. During the execution of command happens next: Clone repository

How to build a project

win

Requirements:

  1. Microsoft Visual Studio Community 2019

You should open (in Visual Studio) root directory. This you get a CMake based project.

linux

Eclipse IDE with CMake based project on Linux.

How to run a project

To run demo project you should use this command line:

win

After building and deploying windows-default cmake-configuration:

    bin\install\windows-default\Release\ptusa_main.exe demo_projects/T1-PLCnext-Demo/main.plua path demo_projects/T1-PLCnext-Demo/ sys_path demo_projects/T1-PLCnext-Demo/sys/ debug

About

Programmable automation controller (PAC) main program

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 69.9%
  • C 29.7%
  • Other 0.4%