Libraries 
  9.4 Open user communication library 
S7-200 SMART 
System Manual, V2.3, 07/2017, A5E03822230-AF 
529 
: Capture the interval timer and then change to the "Idle Wait" state to delay until 
it is time to transmit again. 
 
: State "Idle Wait"... 
Stay in this state for the number of milliseconds specified (IdleTimeDelay). 
 
: Calculate the time since you entered the "Idle" state and, if this is greater than 
the "IdleTimeDelay" value, change the state to the "Transmit" state. 
 
: State 'Transmit"... 
 
: Create the message to send to the passive device. 
For the test program, fill the send buffer with 40 bytes (20 words). Write the number of bytes 
to send into a variable so that you can use the same value in the "TransmitWait" state.