Hello,
I have a question about S5 STL programming. I have been working on those three networks for days , however i could not understand the operation yet.
In the code part below, DB 140 , used for Counter card is called and real encoder values are read. In the manual of IP240 counter card, these explanation for DW 30 & DW 31 can be found.
While configuring the counter card with fb167:
:JU FB 167
Name :STRU.POS
BGAD : KF +128
KANR : KF +1
DBNR : KF +140
AFL : KF +1
IMP : KF +0
BCD : KY 0,0
PRA1 : KM 00000000 00000000
PRA2 : KM 00000000 00011101
RUND : KF +0
LOSE : KF +0
DAV : KF +0
PAFE : FY 200
i could not realize the line
BCD : KY 0,0
Does this mean i read the encoder value binary or BCD?
No matter if BCD or binary is used , i could not understand the shifting commands SRW 2 and SLW 14.
At the end i read the encoder value from DW103 but i just could not understand how?
The mentioned code is below , thank you for your help.
Best Regards ,
Emre
Segment 1
Name :FAHREN
:C DB 140
:***
Segment 2
:L DW 31
:SRW 2
:T DW 101
:
:L DW 30
:T FW 160
:SLW 14
:T DW 102
:L DW 101
:OW
:T FW 162
:A F 160.7
:= F 162.7
:
:L FW 162
:T DW 103
:***
Segment 3
:L DW 103
:L KF +17900
:>=F
:= F 150.0
:
:L DW 103
:L KF +17750
:>=F
:= F 150.1
:***
I have a question about S5 STL programming. I have been working on those three networks for days , however i could not understand the operation yet.
In the code part below, DB 140 , used for Counter card is called and real encoder values are read. In the manual of IP240 counter card, these explanation for DW 30 & DW 31 can be found.
While configuring the counter card with fb167:
:JU FB 167
Name :STRU.POS
BGAD : KF +128
KANR : KF +1
DBNR : KF +140
AFL : KF +1
IMP : KF +0
BCD : KY 0,0
PRA1 : KM 00000000 00000000
PRA2 : KM 00000000 00011101
RUND : KF +0
LOSE : KF +0
DAV : KF +0
PAFE : FY 200
i could not realize the line
BCD : KY 0,0
Does this mean i read the encoder value binary or BCD?
No matter if BCD or binary is used , i could not understand the shifting commands SRW 2 and SLW 14.
At the end i read the encoder value from DW103 but i just could not understand how?
The mentioned code is below , thank you for your help.
Best Regards ,
Emre
Segment 1
Name :FAHREN
:C DB 140
:***
Segment 2
:L DW 31
:SRW 2
:T DW 101
:
:L DW 30
:T FW 160
:SLW 14
:T DW 102
:L DW 101
:OW
:T FW 162
:A F 160.7
:= F 162.7
:
:L FW 162
:T DW 103
:***
Segment 3
:L DW 103
:L KF +17900
:>=F
:= F 150.0
:
:L DW 103
:L KF +17750
:>=F
:= F 150.1
:***