Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » Experiments with Raspberry Pi 3B+ #1
Experiments with Raspberry Pi 3B+ #1 [message #1816366] |
Mon, 28 October 2019 09:16  |
Eclipse User |
|
|
|
All of projects were launched on Raspberry Pi 3B+.
I set sleepThread equal 0 ms - CThread::sleepThread(0) in FORTE source project into files: sysfsprocint.cpp and io_controller.cpp. After I made cross-compilation and launched on Raspberry Pi.
IDE version is 1.11.0
FORTE version is 1.11.0
[Updated on: Tue, 29 October 2019 10:21] by Moderator
|
|
| | | |
Re: Experiments with Raspberry Pi #1 [message #1816437 is a reply to message #1816370] |
Tue, 29 October 2019 09:43   |
Eclipse User |
|
|
|
Project #2
Goal:
to form for each input signal its own delay (2ms, 4ms, 6ms, 8ms, 10ms) (Fig. ProjectMap #2).
Project build:
project consists of IX (five inputs), E_SWITCH (to go to events manage), E_DELAY (to form delay), E_RS (create output signal) and QX (five outputs) (Fig. IDE #2), system configuration (Fig. Configuration #2).
Results:
(For signal with frequency 40 Hz and duty 20%)
wrote to console chrt -r -a -p 99 `pidof forte`
1 oscillograph channel was installed on the input signal (yellow)
3 oscillograph channels were installed on the first, third and fifth outputs (green, blue, magenta)
statistics were amounted for the first and fifth outputs
after 500 thousands measurements I got next statistics (Fig. Result #2):
**********************************************************************************
- average delay time first output = 1.5694 milliseconds (instead of 2 milliseconds, which was set at the project);
- minimal delay time first output = 36.8 microseconds;
- maximal delay time first output = 2.2280 milliseconds;
- standard deviation first output = 313.08 microsecond;
**********************************************************************************
- average delay time fifth output = 9.5607 milliseconds (instead of 10 milliseconds, which was set at the project);
- minimal delay time fifth output = 8.1104 milliseconds ;
- maximal delay time fifth output = 10.378 milliseconds;
- standard deviation fifth output = 436.37 microsecond.
Conclusion:
the circuit, consisting of IX, E_SWITCH, E_DELAY, E_RS and QX blocks, has a delay range from the set value of about 2.2 milliseconds; the average delay time differs from the set value by 0.5 milliseconds.
[Updated on: Thu, 31 October 2019 04:15] by Moderator
|
|
|
Re: Experiments with Raspberry Pi #1 [message #1816550 is a reply to message #1816437] |
Thu, 31 October 2019 04:31   |
Eclipse User |
|
|
|
Project #3
Goal:
to form for each a input signal with frequency 50 Hz and duty 20% a output signal with active state duration 10 milliseconds (Fig. ProjectMap #3).
Project build:
a IDE project consists of IX (five inputs), E_SWITCH (to go to events manage), E_DELAY (to form active state output signal), E_RS (create output signal) and QX (five outputs) (Fig. IDE #3), system configuration (Fig. Configuration #3).
Results:
(for signal with frequency 50 Hz and duty 20%)
wrote to console chrt -f -a -p 99 `pidof forte`
2 oscillograph channels were installed on the input signal (yellow and green)
2 oscillograph channels were installed on the first, third and fifth outputs (blue, magenta)
statistics were amounted for the first and fifth outputs
after 50 thousands measurements I got next statistics (Fig. Result #3):
**********************************************************************************
- average delay time first output = 92.184 microseconds;
- minimal delay time first output = 26.4 microseconds;
- maximal delay time first output = 189.6 microseconds ;
- standard deviation first output = 23.585 microsecond;
- average active state duration first output = 9.5513 milliseconds (instead of 10 milliseconds, which was set at the project);
- minimal active state duration first output = 8.112 milliseconds;
- maximal active state duration first output = 10.270 milliseconds;
**********************************************************************************
- average delay time fifth output = 107.88 microseconds;
- minimal delay time fifth output = 19.2 microseconds;
- maximal delay time fifth output = 271.2 microseconds ;
- standard deviation fifth output = 37.053 microsecond;
- average active state duration fifth output = 9.5589 milliseconds (instead of 10 milliseconds, which was set at the project);
- minimal active state duration fifth output = 8.113 milliseconds;
- maximal active state duration fifth output = 10.302 milliseconds;
Conclusion:
the circuit, consisting of IX, E_SWITCH, E_DELAY, E_RS and QX blocks, has a active state duration range from the set value of about 1.2 milliseconds; the average delay time differs from the set value by 0.45 milliseconds.
[Updated on: Fri, 01 November 2019 01:27] by Moderator
|
|
|
Re: Experiments with Raspberry Pi #1 [message #1816590 is a reply to message #1816550] |
Thu, 31 October 2019 23:07   |
Eclipse User |
|
|
|
Good post, i expect the author to continue with this post, i also have several questions, which i am confused with,
1. which version of OS are you using, original raspbian or with the real time kernal package?
2. comparing Single-Chip Microcomputer, the os provide powerful functionalities, but that also means many unnecessay processes, that will interrupt forte, should we need to cut the os according to the minimize requirement, or increasing the priority of forte process is enough?
3. comparing small business PLC, are there anything that the 3b+ doesn't have? Can also talking about the industry hardware and design for industry.
4. when we use softplc instead of traditional plc, which points we should pay attention to?
5. 3b+ is just for testing or the possibility for industry using?
|
|
| | | | |
Re: Experiments with Raspberry Pi #1 [message #1816641 is a reply to message #1816619] |
Sat, 02 November 2019 22:40  |
Eclipse User |
|
|
|
soft plc is a software delevoped by standard c/c++ which is running in os, such as forte, codesys, softservo,MULTIPROG.
traditional plc: the runtime is as a firmware in single-chip microcomputer, which is not portable, not like forte can copy anywhere.
that's my understanding.
Do you have any suggestion on i2c extension shield for driving industry motor/servo, the adafruit's PCA9685 seems to be for model making.
[Updated on: Sat, 02 November 2019 22:47] by Moderator
|
|
|
Goto Forum:
Current Time: Wed Jul 23 21:18:32 EDT 2025
Powered by FUDForum. Page generated in 0.06567 seconds
|