1 to 3:
This parts are temp Variables, here the converter saves the accu1 and 2 and stw (status)
the converter always saves the accus on the beginning of an FC or FB
5: every command make changes in the stw, take a look at the manual
4: this is indirect addressing
Here the Byte 1 from DB10 is loaded to AR1 (adress register) with slw4 you get the content to the pointerformat
Code: Select all
L #conv_akku1
T DB10.DBW [AR1,P#0.0]
Here you transfer accu 1 to the word with the adress from the byte 1, you loaded before.
for example:
content from DBB1: 100
after the slw you have the pointerformat 100.0
than you transfer the content from accu1 to db10.DBW100
I hope this helps