The line follower uses only 1 device, so it should able to be modeled as 1 device. The simulated model will use different types of FBs. Basic and composite FBs must be added to some IEC 61499 RTE. The choices are FORTE or FBRT. Since the HMI FBs used for simulation are FBRT, if FORTE is used, then PUBLISH and SUBSCRIBE FBs must be used. This causes unnecessary complexity sending events between FBs on the 2 "devices".
So the simulation will develop the application and FB types in 4DIAC, but will add the FBs to FBRT for now. Simulation testing will also be done via 4DIAC. Since the FBs use Structured Text FORTE, they can also be used for the real (ST) Lego Line Follower under eCos without changes, except for direct Lego HW I/O (Sensors, Motors, possibly the Display). Only FORTE will be running under eCos. So the real Lego line follower will need/use FORTE.
Simulation:
- 4DIAC: Develop Application and FB Types
- FBDK editor parse: Check for basic and composite FB errors
(no Structured Text error checks currently in 4DIAC?) - FBDK editor save as:
- Converts the updated XML to Java class (fb.rt.fbTypeGroupName)
- Compiles to Java classes in FBDK
- 4DIAC: Add fbTypeGroupName to FBRT preferences
- 4DIAC: Add new FBs where needed in application
- 4DIAC: Test via Deployment of FBRT in 4DIAC
No comments:
Post a Comment