Hello Experts
I have a little problem in dealing with addresses. I am using a profibus absolute encoder Hengstler make. This encoder is spec2:64 bit. When I had added this encoder in HW config it took address(by default) 384....391 for Input and 384....391 for output. I can read the encoder value without any problem, but there is another feature in Encoder which is called Preset and by activating this function you can define/force a value into encoder. As I said it is 64 bit encoder so its 32 bits are for input and 32 bits are for output. Now If I have to force my own preset value into encoder, I have to give rising edge at 31st bit, which activates the preset function and need to define a value in 0-31 bits. I have made a DB in software and defined the preset function in DB5.DBD4. So now I am forcing 31st bit which is DB5.dbx4.7 (MSB). My question is where should I define my preset value. Should it be at DB5.dbd7 or PQW391, but this is not a peripheral I/O so I dont think PQW is the right way of doing it. Could somebody please help me in that.
Many Thanks
Manoj
I have a little problem in dealing with addresses. I am using a profibus absolute encoder Hengstler make. This encoder is spec2:64 bit. When I had added this encoder in HW config it took address(by default) 384....391 for Input and 384....391 for output. I can read the encoder value without any problem, but there is another feature in Encoder which is called Preset and by activating this function you can define/force a value into encoder. As I said it is 64 bit encoder so its 32 bits are for input and 32 bits are for output. Now If I have to force my own preset value into encoder, I have to give rising edge at 31st bit, which activates the preset function and need to define a value in 0-31 bits. I have made a DB in software and defined the preset function in DB5.DBD4. So now I am forcing 31st bit which is DB5.dbx4.7 (MSB). My question is where should I define my preset value. Should it be at DB5.dbd7 or PQW391, but this is not a peripheral I/O so I dont think PQW is the right way of doing it. Could somebody please help me in that.
Many Thanks
Manoj