I've never programmed a Fanuc any robot before but I'm pretty fluent in AB PLCs. We are slow at work and my boss told me to make our spare Fanuc 200iD dance to a song. Interesting learning experience thus far! Haha. I'm beginning to grasp the different types of moves, frames, and programming language Fanuc uses, but I have a long way to go still. I began a program and starting giving the robot some joint moves with a few delays trying to get the cadence of the robot to match with the song, but speeds and syncing have been difficult. Sometimes it feels that there are longer pauses between moves for no reason and I can't quite keep the bot and music synced very well.
I was thinking about using some kind of background timer that begins with the program and keeps the beat like a metronome, then tethers the beginning and ending pieces of a movement to these background 'clicks' somehow.
TL;DR: If you had to sync robot movements to a song, how would you go about that?