70a0721680
style: With shared_procimg, save changed outputs in set instead of list
...
In sets, elements can only occur once. Therefore, no `if` statement
has to check whether the element is already included in the list.
Signed-off-by: Sven Sager <akira@narux.de >
2023-08-17 12:28:42 +02:00
4cb0194f23
chore: Release 2.6.0
...
Signed-off-by: Sven Sager <akira@narux.de >
2.6.0
2023-06-28 16:03:04 +02:00
82311c9b00
fix: Colors of LEDs are now controlled correctly
...
The wrong colors of the LEDs on the RevPi Connect 4 were controlled when
using the A* properties.
Signed-off-by: Sven Sager <akira@narux.de >
2023-06-28 15:34:54 +02:00
9c66e0c1b6
ide: Add code inspection values to project
...
Signed-off-by: Sven Sager <akira@narux.de >
2023-06-20 10:47:46 +02:00
d29e733274
build: Add sphinx to build documentation
...
Signed-off-by: Sven Sager <akira@narux.de >
2023-06-20 10:39:29 +02:00
6f4777317e
fix: Changed DevSelect from namedtuple to a class
...
The class can be used for filtering devices and provides the user with
more extensive documentation.
Signed-off-by: Sven Sager <akira@narux.de >
2023-06-09 08:11:12 +02:00
1de435b17f
fix: Adjustment of the inheritance of devconfigure
...
When switching to the modular approach, the addresses of a core were
accidentally adopted as a global configuration.
Signed-off-by: Sven Sager <akira@narux.de >
2023-06-08 19:01:48 +02:00
40ada14b07
chore: RC version 2.6.0rc6
...
Signed-off-by: Sven Sager <akira@narux.de >
2023-06-08 14:31:03 +02:00
Nicolai Buchwitz
7d7efd12a9
feat: Add support for RevPi Connect 4
...
Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de >
2023-06-08 14:23:16 +02:00
c8b42b5202
fix: Add modular design for RevPiStatus byte
...
Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de >
2023-06-08 14:23:08 +02:00
Nicolai Buchwitz
77c58f468b
docs(Connect): Fix typo in wgtoggle docstring
...
Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de >
2023-05-24 20:50:30 +02:00
207a8e92e8
Add __about__.py to handle version number of project in one place
2023-05-13 11:57:04 +02:00
3771a7847e
Replaces Master-Slave with Client-Server
...
Expunging all occurrences of inappropriate language of the query and
response paradigm of PLC communications. We are familiar with the Modbus
terminology and fully support this change.
https://www.modbus.org/docs/Client-ServerPR-07-2020-final.docx.pdf
2023-02-07 09:38:11 +01:00
7d482d498c
Change license from LGPLv3 to LGPLv2 after approval of all contributors
...
https://github.com/mindstorm38 approved license change
https://github.com/nbuchwitz approved license change
2023-02-03 12:10:43 +01:00
8ddb323f24
Update documentation
2023-01-31 20:05:04 +01:00
05e4ff96ca
Code and project cleanup
2023-01-20 17:08:35 +01:00
1b7397e608
Improved device search function and create run_net_plc shortcut
2023-01-20 12:31:59 +01:00
c7b2e59063
Merge branch 'feature/deviceselect' into srclayout
...
# Conflicts:
# src/revpimodio2/modio.py
# src/revpimodio2/netio.py
2023-01-20 11:18:08 +01:00
1057e6daa4
Reorder package to src-layout.
...
Move package to src directory and update project base files for build
process.
2023-01-19 13:20:26 +01:00
36c30ae6d6
replace_io accepts keyword wordorder
...
Now you can set the wordorder for a replaced IO on virtual devices. This
will help you to get the right values on modbus devices.
2023-01-12 23:26:09 +01:00
0dd9c2637d
Read export flag from piCtory for watchdog output
...
The watchdog output on a revpi connect will be set as exported, if you
set the export flag in pictory.
2022-12-22 16:40:33 +01:00
41e13999ad
Next release
2.5.10
2022-04-21 15:55:31 +02:00
438a76d5bb
Add position numbers in warning text of all devices with equal name in piCtory
...
close #21
2022-04-03 08:14:50 +02:00
08c9b59e48
Improve troubleshooting details on equal device names in piCtory.
...
Tanks Kees @kjkoster
close #21
2022-04-02 20:43:35 +02:00
8f0539edfc
Configure replaced ios from file before starting autorefresh
...
Very high load of cpu could cause cycle time warnings while apply replaced ios from file.
2022-03-25 11:57:00 +01:00
c635376ee2
Next release
2.5.9
2021-11-03 20:17:38 +01:00
068732d424
Merge branch 'cycle_precision' into develop
2021-11-03 20:15:01 +01:00
36ff69aaa6
Sync the first cycle with imgwriter after calling .cycleloop
2021-10-24 14:28:33 +02:00
c9fcc5834f
Add prefire to reg_timerevent function
2021-10-24 10:53:41 +02:00
bc8a13da1b
Warn the user faster, if the cycle time is exhausted
2021-10-24 10:50:42 +02:00
b90e858fef
Make the cycle more precise
...
Measure each cycle of process image synchronisation and do not build a mean value for that.
The cycle function is now exactly timed, even if the individual runtimes are different.
2021-10-17 19:11:04 +02:00
5c3568d4b8
Merge pull request #19 from nbuchwitz/fix/scope-bitaddress
...
Scope bit address with byte address
2021-10-16 10:47:07 +02:00
Nicolai Buchwitz
665b989217
fix: scope bit address with slc_address
...
Scope bit address with byte address in order to allow replace_io on
datatypes bigger than 8 bit (like WORD)
2021-10-14 18:15:10 +02:00
577e764741
Next release
2.5.8
2021-09-23 16:33:35 +02:00
8999e71d2e
Bugfix with shared process image in cycle loop
...
Shared outputs was written after reading the process image for current cycle. So the values for the outputs was one cycle in the past.
2021-09-22 16:25:12 +02:00
9c7c679abc
Bugfix on handle default values of type byte (frm="*s") in export_file
2021-09-09 12:31:21 +02:00
8607f25b37
Bugfix for offset check in piCtory file
2021-08-22 17:10:31 +02:00
0edfb4ef85
Check device offsets in piCtory file and ignore IOs with wrong offsets
...
The modbus 150 Device has a memory gap and piCtory does not calculate the right offset of the following device - We will warn the user.
2021-07-28 07:38:34 +02:00
498d200e41
The replace_io file can handle default values of type byte (frm="*s") now.
2021-07-28 07:37:20 +02:00
af15bd36cd
Internal change RevPi*IOSelected search method
...
Internal device search is more flexible to expand the search functions of
RevPi*IOSelected in the future. There are no changes in usage.
2021-05-03 09:56:12 +02:00
a05770e4f8
Added MIO memory value mappings
2021-05-01 08:12:45 +02:00
17666edb85
Merge pull request #12 from nbuchwitz/feature/product-type
...
introduce ProductType enum
2021-05-01 07:56:56 +02:00
Nicolai Buchwitz
10f30721c1
introduce ProductType enum and use it
2021-04-30 18:48:19 +02:00
ae8dcf7866
Next release
2.5.7
2021-04-18 09:14:58 +02:00
89a447abb9
Bugfix: Calculate correct lengths despite IO gaps in incorrect piCtory file
2021-04-14 09:09:10 +02:00
687c7ab91a
Flat: Switch and Relais as real io of core class, added MEMs to pictory.py
2021-02-12 19:43:11 +01:00
d35b09e209
Next release
2.5.6
2021-01-31 19:35:29 +01:00
6608bd965c
Sync write of outputs with autorefresh/cycle or .writeprocimg, if shared_procimg=True
...
If shared_procimg=True, ModIO wrote the new set values directly to the process
image without cycle sync mechanisms. As a result, the IOs could change status
several times within the cycleloop, which is wrong.
2021-01-31 13:31:05 +01:00
57c56ce207
Corrected misleading message
2021-01-17 10:21:33 +01:00
2904c7b187
Next release
2.5.5
2021-01-14 19:08:28 +01:00