Skip to content

Latest commit

 

History

History
49 lines (27 loc) · 1.77 KB

readme.md

File metadata and controls

49 lines (27 loc) · 1.77 KB

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