Control two robots and five external axis through a main program

I want to control two robots and five external axis through a main program, visualcomponents software can achieve this function?

Yes you can use one robot as master and use other as slave.
Control your external axises from your master robot.
Then use sync command to syncronize your robot programs.