@startuml skinparam monochrome true start :start_period(500 ms); while () :wait_next_period(); if(robotStarted)then(true) :msgSend=robot.Write(robot.getBattery()); :messageToMon!msgSend; endif endwhile stop @enduml