Hi!
Maybe stupid question, but new thing to me.
I have created FB1 and so far it has one instance db, db1.
But I would need to move one dbw value, which is in INT format (instancedb.dbw0 to Output interface instancedb.dbx4.6 - 5.3.
FB is supposed to move linear servo, according step numbers.
Step number 0-63 is in this dbw which I should move to output interface.
But Servo is reading 6 bits. That's why I need to move INT value to output bits.
But how can I do it inside of FB?
I thought I could use fb's instance db bits without pointing certain db.
Example like this:
L dw0
T dw2
And just mask part of bits to get only those 6 bits in use.
But no.
For some reason, CPU thinks I am using db0 for those instructions, not instance db1.
Sorry for My bad English, hope someone can get the point.. =)
Maybe stupid question, but new thing to me.
I have created FB1 and so far it has one instance db, db1.
But I would need to move one dbw value, which is in INT format (instancedb.dbw0 to Output interface instancedb.dbx4.6 - 5.3.
FB is supposed to move linear servo, according step numbers.
Step number 0-63 is in this dbw which I should move to output interface.
But Servo is reading 6 bits. That's why I need to move INT value to output bits.
But how can I do it inside of FB?
I thought I could use fb's instance db bits without pointing certain db.
Example like this:
L dw0
T dw2
And just mask part of bits to get only those 6 bits in use.
But no.
For some reason, CPU thinks I am using db0 for those instructions, not instance db1.
Sorry for My bad English, hope someone can get the point.. =)