Hi Gents,
I am just wondering if there is someone here who could decipher the following code for a Siemens S5 PLC system.
I ma converting the software and I just realized that I missed this bit and I am only a few hours away from the conversion and don't have time to read the manual to understand what the code is trying to do.
=============================================
NAME: COD:16
DECL: DUAL IW
DECL: SBCD QBI
DECL: BCD2 QBY
DECL: BCD1 QW
BE
==============================================
Then it returns to :
==============================================
NAME: AFMSLAG
L KF +500
T FW 200
L KF +3600
T FW 202
JU FB 221
NAME: MUL/DIV
INP : FW 200
MULT: FW 202
DIV : DW 95
OUTP: FW 208
JU FB 241
NAME: COD:16
DUAL: FW 208
SBCD: -BIT=0
BCD2: FY 202
BCD1: FW 204
L FW 204
T DW 96
BE
============================================
Where DW 96 is an analog output (might go to a BCD to analog hardware converter)
Not sure how to convert the SBCD ,BCD2,BCD1,etc ..Not sure what the code is trying to achieve.
Thanks in advance.
I am just wondering if there is someone here who could decipher the following code for a Siemens S5 PLC system.
I ma converting the software and I just realized that I missed this bit and I am only a few hours away from the conversion and don't have time to read the manual to understand what the code is trying to do.
=============================================
NAME: COD:16
DECL: DUAL IW
DECL: SBCD QBI
DECL: BCD2 QBY
DECL: BCD1 QW
BE
==============================================
Then it returns to :
==============================================
NAME: AFMSLAG
L KF +500
T FW 200
L KF +3600
T FW 202
JU FB 221
NAME: MUL/DIV
INP : FW 200
MULT: FW 202
DIV : DW 95
OUTP: FW 208
JU FB 241
NAME: COD:16
DUAL: FW 208
SBCD: -BIT=0
BCD2: FY 202
BCD1: FW 204
L FW 204
T DW 96
BE
============================================
Where DW 96 is an analog output (might go to a BCD to analog hardware converter)
Not sure how to convert the SBCD ,BCD2,BCD1,etc ..Not sure what the code is trying to achieve.
Thanks in advance.