Good evening guys,
Making use of data imported from SQL database and exporting of data extracted in models
To give some context about the 3D model: I am trying to replicate a pick and sort production line with traffic light system to indicate the status of the system. Right now I would require help in the area of utilizing the data imported from SQL database for my 3D model so that the simulation of the 3D Model will be more realistic when simulated.
Based on the below fsm model that I have attached, I am able to import data from SQL server into global table form example global table 1,2,3. For global table 1 and 3, it's supposed to have data but I cleared it in my database. So for convenience's sake, I had replicated certain datas from there and wrote it under PCBquantity. For the given data under PCBquantity global table, I would like to know how to make use of those data like schedule data/time to sync to my 3D model upon running the model, set the quantity of the object (over here is the PCB) produced in each of the source. Right now I'm using real-time (based on computer time) upon running the 3D Model in the OnRunStart script and for my source ( on exit I have limited the number of object output) which isn't what I want. I want my 3D model to be able to make use of the data imported from SQL server on the global table and be able to export statistical data (such as numbers of sorted blue/red PCB/ duration of each cycle of the robotic arm when pick -> placed -> original position) into SQL server be it in table and column form or others. Can any1 kindly help me with this? I have drafted this 3D Model a few months back. To clarify I am a novice in this area and I am not very good with coding, as for those script-wise codes I found online samples of it, so please do not tell me to write any script code by myself. So sorry about this, please do help. Thankyou!
For future work: I will have to try to sync to PLC emulation/e-schedular etc.
Making use of SQL data and exporting statistical data into SQL.fsm