phoenixcmb
Member
I have the following situation
CALL FC71
Read_in_DBno: DB100 // Input is a Block_DB
I want this to turn this to something like this:
(i know that this software cannot be given but it gives a figure off what i would like to establish)
L #Sensornumber
L 1
== I
spbn rd1
L DB100
T #t_Read_in_DBno
spa rn
rd1:nop 0
L #Sensornumber
L 2
== I
spbn rd2
L DB200
T #t_Read_in_DBno
spa rn
rd2:nop 0
rn:nop 0
CALL FC71
Read_in_DBno: #t_Read_in_DBno
This way I don't have to recall the FC everytime over and over again. I have over a 100 sensors but will read only one sensor at a time. On a panel I choose which sensor i would like to read out.
What syntax do I need to use to make such a function?
CALL FC71
Read_in_DBno: DB100 // Input is a Block_DB
I want this to turn this to something like this:
(i know that this software cannot be given but it gives a figure off what i would like to establish)
L #Sensornumber
L 1
== I
spbn rd1
L DB100
T #t_Read_in_DBno
spa rn
rd1:nop 0
L #Sensornumber
L 2
== I
spbn rd2
L DB200
T #t_Read_in_DBno
spa rn
rd2:nop 0
rn:nop 0
CALL FC71
Read_in_DBno: #t_Read_in_DBno
This way I don't have to recall the FC everytime over and over again. I have over a 100 sensors but will read only one sensor at a time. On a panel I choose which sensor i would like to read out.
What syntax do I need to use to make such a function?