Commit fd961039 authored by Claes Sjofors's avatar Claes Sjofors

Document updates

parent 76ef2d31
...@@ -7134,6 +7134,11 @@ output. ...@@ -7134,6 +7134,11 @@ output.
Note that the pointer element for the inputs In1 and In2 are used in the code. Note that the pointer element for the inputs In1 and In2 are used in the code.
You should also add prototype declaration of the exec function in ra_plc_user.h
<c>void 'StructName'_exec( plc_sThread *tp,
<c> pwr_sClass_'StructName' *o);
The module of the c-code is compiled and linked with the plc program. This requires a link The module of the c-code is compiled and linked with the plc program. This requires a link
file to be placed on the directory $pwrp_exe. The file is named file to be placed on the directory $pwrp_exe. The file is named
plc_'nodename'_'busnumber'_'plcname'.opt, e.g. plc_mynode_0999_plc.opt. The content of the plc_'nodename'_'busnumber'_'plcname'.opt, e.g. plc_mynode_0999_plc.opt. The content of the
......
...@@ -7032,6 +7032,11 @@ I kod exemplet nedan ...@@ -7032,6 +7032,11 @@ I kod exemplet nedan
Observera att pekar-elementet för ingångarna In1 och In2 används i koden. Observera att pekar-elementet för ingångarna In1 och In2 används i koden.
En prototyp-deklaration av exec funktionen läggs in i ra_plc_user.h
<c>void 'StructName'_exec( plc_sThread *tp,
<c> pwr_sClass_'StructName' *o);
Modulen för c-koden kompileras och länkas ihop med plc-programmet genom att en länk-fil Modulen för c-koden kompileras och länkas ihop med plc-programmet genom att en länk-fil
skapas på katalogen $pwrp_exe. Filen ska namnges plc_'nodenamn'_'busnr'_'plcname'.opt, t ex skapas på katalogen $pwrp_exe. Filen ska namnges plc_'nodenamn'_'busnr'_'plcname'.opt, t ex
plc_mynode_0999_plc.opt. Innehållet i filen skickas med som indata till länkaren, ld, och man plc_mynode_0999_plc.opt. Innehållet i filen skickas med som indata till länkaren, ld, och man
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment