Amtech
6-130
6
Example 4
This example is given to just demonstrate how to use 16-bit memory locations (Register 0 to
114) and 32-bit memory location.
Program Code:
Input from Display Panel into P101 to PA01.
P101 001001001000 Copy 16-bit Immediate value (1000) into Register no.1
P102 001002032000 Copy 16-bit Immediate value (32000) into Register no.2
P103 001003001000 Copy 16-bit Immediate value (1000) into Register no.3
P104 001004030000 Copy 16-bit Immediate value (30000) into Register no.4
P105 002003000000 It will take Register no 3 as high 16-bit and Register no 4 as low 16-
bit and save it to 32-bit memory location as 32-bit value.
P106 013001000000 It will take Register no 1 as high 16-bit and Register no 2 as low 16-
bit and form 32-bit value, which will be added to the content of 32-
bit memory location. Result will be saved to 32-bit memory location.
P107 003005000000 It will take high 16-bit of the content of 32-bit memory location and
store it to Register no 5 and low 16 -bit to the Register no 6.
P108 061001005000 It will display the content of Register no 5 on Display Panel. (M313)
P109 061002006000 It will display the content of Register no 6 on Display Panel. (M314)
P110 000000000000 End of Program.
User has to set following parameter.
1. Enable PLC functions from C312.
Note: There is only one 32-bit memory location is given.
During 32-bit load and store commands user should use only 0 to 84 16-bit memory locations.
Example 5
This application can be used to monitor feedback of analog voltage input 0-10Vdc by the use
of PLC on Display Panel.
Program Code:
Input from Display Panel into P101 to PA01.
P101 016094108000 Multiplication b
etween Register 94 and 108 and result will be stored
in 32-bit memory location.
P102 001001000100 Copy 16-bit Immediate value (100) into Register no.1
P103 018001000000 Division between 32-bit memory location and register 1 and result
will be stored in 32-bit memory location
P104 003010000000 The value of 32-
bit memory location is stored in Register 10 as high
and register 11 as low 16-bit value.
P105 028012010011 Word OR logic between Register 10 and 11 and result will be store
in Register 12.
P106 061001012000 Display Register 12 in PLC Display Number 1.
P107 000000000000 End of Program.
User has to set following parameter.
1. Enable PLC function from C312.
2. Register 94 contains FSV input, which is read only memory location.
3. Register 108 contains value of Panel Para8 (C708) which is used for multiplication factor,
and that should be change as per input quantity range.
Note: There is only one 32-bit memory location is given.