PLCgen: use smallest integer representation possible for ranged integer and enum-typed variables/constants
Use smallest integer representation possible for ranged integer and enum-typed variables/constants (BYTE/INT instead of DINT, etc). See also representation list of supported types in S7.
See also discussions in #912 (closed).
Addresses #912 (closed), #679
Edited by Dennis Hendriks