19.6 ASSIGNMENT PROBLEMS
2. Write a structured text program to control a press that has an advance and retract with limit switches. The press is started and stopped with start and stop buttons.
3. Write a structured text program to sort a set of ten integer numbers and then find the median value.
4. Write a ST program to accept an input string `teststring' with the sample format of `XWT55.36KG'. The program should extract the 5 digit number in the middle of the string starting at the 4th position. If the number is less than or equal to 20, or greater than 60, the output Y should be set.
Search for More: |
Custom Search
|   |