FBD outputs to Sketch to send it to the IOT cloud

i have done FBD programming in arduino PLC IDE for a certain logic and have observed four outputs in the watch .Now i want to send to sketch and display it on serial monitor inside the plc IDE. If any one knows please help and attach if any example is there.
Thankyou