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.
Parameter No.
P101
P102
P103
P104
P105
P106
P107
P108
6
P109
P110
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.
Parameter No.
P101
P102
P103
P104
P105
P106
P107
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.
Amtech
6-130
PLC Command
Description
001001001000
Copy 16-bit Immediate value (1000) into Register no.1
001002032000
Copy 16-bit Immediate value (32000) into Register no.2
001003001000
Copy 16-bit Immediate value (1000) into Register no.3
001004030000
Copy 16-bit Immediate value (30000) into Register no.4
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.
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.
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.
061001005000
It will display the content of Register no 5 on Display Panel. (M313)
061002006000
It will display the content of Register no 6 on Display Panel. (M314)
000000000000
End of Program.
PLC Command
Description
016094108000
Multiplication between Register 94 and 108 and result will be stored
in 32-bit memory location.
001001000100
Copy 16-bit Immediate value (100) into Register no.1
018001000000
Division between 32-bit memory location and register 1 and result
will be stored in 32-bit memory location
003010000000
The value of 32-bit memory location is stored in Register 10 as high
and register 11 as low 16-bit value.
028012010011
Word OR logic between Register 10 and 11 and result will be store
in Register 12.
061001012000
Display Register 12 in PLC Display Number 1.
000000000000
End of Program.
Need help?
Do you have a question about the Axpert-Eazy Series and is the answer not in the manual?