Hi all,
I have some problem about my plc codes lines so if you help me , I will be very happy.
First of all,
we assume that #inDriveNo:=49 and I wonder some values of code line.
-------------------------------------------------------------------------------
OPN "XYZ" //DB52
L #inDriveNo
SLD 6
LAR1 // Line A
L DBW [AR1, P#0.0] //First DP area address,
T #outAddress //Line B
SLD 3
LAR1 //DP area pointer, Line C
L PIW [AR1, P#0.0] //Status word
T #tmpDriveSt // Line D
T #outDriveStat
-------------------------------------
#inDriveNo(int),
#tmpDriveSt (word),
#outDriveStat (word)
please check and follow below lines;
#inDriveNo= 0000 0000 0011 0001
AR1=392 Line A
and I dont know what is the other parameter values?
For example,
What is the value of AR1 in Line A
What is the value of Accu1 in Line B
What is the value of AR1 in Line C
What is the value of #tmpDriveSt in Line D
Thank you very much for your helpings.
I have some problem about my plc codes lines so if you help me , I will be very happy.
First of all,
we assume that #inDriveNo:=49 and I wonder some values of code line.
-------------------------------------------------------------------------------
OPN "XYZ" //DB52
L #inDriveNo
SLD 6
LAR1 // Line A
L DBW [AR1, P#0.0] //First DP area address,
T #outAddress //Line B
SLD 3
LAR1 //DP area pointer, Line C
L PIW [AR1, P#0.0] //Status word
T #tmpDriveSt // Line D
T #outDriveStat
-------------------------------------
#inDriveNo(int),
#tmpDriveSt (word),
#outDriveStat (word)
please check and follow below lines;
#inDriveNo= 0000 0000 0011 0001
AR1=392 Line A
and I dont know what is the other parameter values?
For example,
What is the value of AR1 in Line A
What is the value of Accu1 in Line B
What is the value of AR1 in Line C
What is the value of #tmpDriveSt in Line D
Thank you very much for your helpings.