benhar-dev / mobject-io Goto Github PK
View Code? Open in Web Editor NEWpronounced mob-ject. The open source machine object oriented programming framework and guide
pronounced mob-ject. The open source machine object oriented programming framework and guide
Nothing in the Read me mentions that this project is only for TwinCats.
There are some repo topic tags but they are not obvious.
I would recommend making it clear in the Read Me that this is just for TwinCats.
I was interested in this for Vanilla Codesys, but it seems like it would be a main to maintain a fork on my own.
Since each module is first searched for in the linked list via index, the loop is 100 * (100+1)/2 = 5050 for 100 modules. With 500 modules it is 125,250 and with 1000 modules 500500. It is faster to run through the linked list with an enumerator.
As these are not in the same namespace as a task, the objects will not auto register.
You could save a massive amount of cycle time if you don't recreate the json path with dynmaically created function blocks, but call the FindMember method directly while parsing the path.
First, thank you for this amazing work. This is THE thing I searched to get a decent coding guidelines. Just one thing:
Ok this make total sense for most of the things (I do) in OOP. But I am against the CyclicCall method.
For cyclic call I would prefer to use my FB not as 'pure' class but let them live in the real-time / cyclic context and thus use the body, the INPUT_VAR and OUTPUT_VAR section. Since we can call SUPER^()
to call the implementation of the body of the parent class, I don't see why it should be avoided?
Imagine something like this:
// Real time part, all fb are used as usual
gripper(sensorRP := IN.I101_ST101_gripper_RP,
sensorWP := IN.I102_ST101_gripper_WP,
out_valve => OUT.Q101_ST101_gripper);
// station step management
CASE stepCurrent OF
// ~ some code ~
ST101_Step_e.PICK_PIECE:
gripper.Pick();
// IF gripper.IsPicked() THEN or
IF gripper.piecePicked THEN
stepCurrent := ST101_Step_e.DO_SOMETHING;
END_IF
// ~ some code ~
END_CASE
Isn't that beautiful? How could you do this using the cyclical call method? How the hardware input should be used by the function block? Of course a property is way more powerfull as a standard input, but do we need this power? Is there advantages of such a CyclicCall method?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.