We’re exhibiting at Robotics and Automation 2019 being held at the Ricoh Arena 29th & 30th October 2019. Come and see us on stand 622. Be sure to register at https://www.roboticsandautomation.co.uk/ . Look forward to seeing you there.
In this TechTip, we’ll build on something we’ve looked at previously, and that’s For-Next loops. In this example what we’re looking to do is sequence 8 bits in the HMI (LB-10-17) with a time delay – an application of this might be if you’re looking to perform several bit-triggered data transfers. First off we’ll declare the variables… macro_command main() // Declare variables bool bit // bit is a boolean (bool) short loop // loop value – short (16bit) short time=500 // time – short (16bit) = 500mS Then we’ll do our loop – in this case, 10-17… for loop=10 to Continue reading TechTip: Bit Sequencing Using a Macro on Weintek HMI