https://com0com.sourceforge.net/
Choose default
Choose default C:\Program Files (x86)\com0com
Permissions granted?
On success
.NET 3.2+ required to launch setup (w GUI)
Install NET 3.5 feature now
Running "C:\Program Files (x86)\com0com\setupg.exe"
Success
Apply defaults
A. Try "Blink" in File -> Tutorials and Examples
B. Try upload only if:
com0com active between comX <-> comY
Open PLC Editor is uploading to comX
SimulIDE opened serial connection on comY
C. SimulIDE sketch interfacing via COM6
(as comY
)
D. Connection achieved..
Compiling .st file...
POUS.c
POUS.h
LOCATED\_VARIABLES.h
VARIABLES.csv
Config0.c
Config0.h
Res0.c
Generating binary file...
COMPILATION START: arduino:avr:uno
Using board 'uno' from platform in folder:
Using core 'arduino' from platform in folder:
Detecting libraries used...
Alternatives for Arduino_OpenPLC.h: [src]
ResolveLibrary(Arduino_OpenPLC.h) -> candidates: [src]
Using cached library dependencies for file:
Generating function prototypes...
Compiling sketch...
Using previously compiled file:
Compiling libraries...
Compiling library "src"
Compiling core...
Using precompiled core:
Linking everything together...
Using library src in folder:
C:\Users\alien\OpenPLC\_Editor\editor\arduino\src (legacy)
"C:\Users\alien\AppData\Local\Arduino15\packages\arduino\
tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A
"C:\Users\alien\AppData\Local\Temp\
arduino-sketch-5C107FCBA6C2A451877FE93C73A7D579
/Baremetal.ino.elf"
Sketch uses 3342 bytes (10%) of program storage space.
Maximum is 32256 bytes.
Global variables use 210 bytes (10%) of dynamic memory,
leaving 1838 bytes for local variables. Maximum is 2048 bytes.
Uploading program to Arduino board at COM4...
NOTES:
Serial Port SimulIDE 0.4.15
Serial Port SimulIDE 1.0.0
Setting locations:
https://openplc.discussion.community/post/help-needed-for-location-8488433)
Saudalwasly Aug 01, 2019
thiagoralves wrote:
You will have to manually insert them. Check the getting started guide on openplcproject.com for your board. Digital inputs start at %IX0.0
digital outputs start at %QX0.0
analog inputs start at %IW0
and analog outputs start at %QW0
Uno, Leonardo, Nano, Micro, Zero
Digital In 2, 3, 4, 5, 6 %IX0.0 – %IX0.4
Digital Out 7, 8, 12, 13 %QX0.0 – %QX0.3
Analog In A0, A1, A2, A3, A4, A5 %IW0 – %IW5
Analog Out 9, 10, 11 %QW0 – %QW2
Mega / Due
Digital In 62, 63, 64, 65, 66, 67, 68, 69 %IX0.0 – %IX0.7
22, 24, 26, 28, 30, 32, 34, 36 %IX1.0 – %IX1.7
38, 40, 42, 44, 46, 48, 50, 52 %IX2.0 – %IX2.7
Digital Out 14, 15, 16, 17, 18, 19, 20, 21 %QX0.0 – %QX0.7
23, 25, 27, 29, 31, 33, 35, 37 %QX1.0 – %QX1.7
39, 41, 43, 45, 47, 49, 51, 53 %QX2.0 – %QX2.7
Analog In A0, A1, A2, A3, A4, A5, A6, A7 %IW0 – %IW7
Analog Out 2, 3, 4, 5, 6, 7, 8, 9 %QW0 – %QW7
10, 11, 12, 13 %QW8 – %QW11