stevo
Member
Hi Guys,
Hopefully attached is the code i could with some advice on. I believe this code controls the mapping of Internal memory to the Peripheral Area. The Hardware Address of the CP342-2 (ASI) x2 is 120-135 & 140-155 for both I&Q. All sensors/actuators are mapped to or from the Pheripheral area to a Memory area of a predetermined length. I didnt write the Code however im just interested how it does what it does! The Memory Area is MB140 to MB175.
The parts im not getting anywhere fast with are these line's:
L DBB[AR1,P#630.0]
The first part is ok "Load Datablock Byte" But am i right in saying Indirectly to the value in Address register 1, If so how does the pointer affect the value? Does it offset it?
L MB[AR2,P#160.0]
I think what i wrote above applys here also except Indirectly to Memory Byte Area?
T PQB [AR1,P#0.0]
I think this line transfers AR1's Value to Pherpheral Output Byte without any offset?
I would be grateful for any advice anybody could give me on this.
thanks Steve
Hopefully attached is the code i could with some advice on. I believe this code controls the mapping of Internal memory to the Peripheral Area. The Hardware Address of the CP342-2 (ASI) x2 is 120-135 & 140-155 for both I&Q. All sensors/actuators are mapped to or from the Pheripheral area to a Memory area of a predetermined length. I didnt write the Code however im just interested how it does what it does! The Memory Area is MB140 to MB175.
The parts im not getting anywhere fast with are these line's:
L DBB[AR1,P#630.0]
The first part is ok "Load Datablock Byte" But am i right in saying Indirectly to the value in Address register 1, If so how does the pointer affect the value? Does it offset it?
L MB[AR2,P#160.0]
I think what i wrote above applys here also except Indirectly to Memory Byte Area?
T PQB [AR1,P#0.0]
I think this line transfers AR1's Value to Pherpheral Output Byte without any offset?
I would be grateful for any advice anybody could give me on this.
thanks Steve