109
9.12. Downloading the program
After completed editing of program, data can be sent to the module.
The method of transmission depends on selected means of communication. When
programming locally, it is necessary to establish RS232 cable connection.
For remote programming, it is necessary that the computer on which MTProg is running
has a network connection to the APN where the module resides.
Next step is selecting "Connect" and "Write Program" or "Write and block reading". The
command description can be found in section Menu Module.
9.13. Verifying the program
Despite the high reliability of both local and remote programming, it is recommended to
verify the program written into the module. Especially in cases where the module does not
seem to be acting according to the controlling algorithm.
The device status LED which displays possible problems resulting from errors in processing
of downloaded internal programs has to be verified.
9.14. Examples of programs
This chapter aims at acquainting the user with common methods of defining algorithms.
Programs included in this chapter are built on simple premises and do not take the fact
that they are all made for purely educational purposes into consideration. The authors
renounce any liability for faults resulting from using programs without prior analysis of
circumstances.
9.14.1. The timer
This program illustrates the use of the typical timer (1 of 8 available in MTProg ),
activated by I1 going high (third program line). The pre-set value PV_T1 that the timer
counts up to is 5s (clock frequency is 100Hz) - the line is executed only by first program
cycle. When preset value is reached, T1 flag is raised and output Q1 is set to high. The
timer can be stopped before 5 seconds lapse by setting I1 low.
Summary of Contents for MT-101
Page 1: ......
Page 129: ...126 11 7 Drawings and dimensions ...