Wazzzzupppppppp!
Just need to know if anyone knows of an instruction on an A1S plc that will allow me to look for the condition of a specific bit in a data register and move it to a specific destination?
Here is what I'm trying to do. I have a Hakko touch screen hooked up to an A1S Mitsubishi plc. The touch screen has a read and write area in its system memory. The read area is assigned a register and this is where the touch screen is looking for any bits that might be on. Example I used D900 for n, D901 for n+1, and D902 for n+2. Each bit in the registers are allocated to do certain things depending on which bit is turned on. For example, D900 has several functions, 16 to be exact. Bit 0 is allocated to overlap 1. Overlap is just a pop-up display area that sits on the screen currently being displayed. I can call up this overlap several ways, but the way I need to pop-up is when the Plc tells it to. No problem, I use the instruction [BSET D900 KO] in the plc, this works fine.
The problem I'm having is I want to tell the plc if the overlap is actually on. Kind of like the honor system mentioned on a previous post. The touch screen has a write area also that can be set up to reflect the status of the touch screen. Example, D910 bit 0 will turn on if I call up overlap 0 with the plc. What I need to do is use this on condition of bit 0 in D910 to let the plc know that overlap 0 is actually being shown on the screen. The problem is the other 15 bits in D910 may be on or off at times and I can't just say that if D910 = 1 the overlap must be displayed. For instance, in the same data register D910 bit 4 may be assigned to the backlighting. If backlight on the touch screen is on then bit 4 is on, now D910 = 16.
I now in the FX series there is an instruction called BON. I believe it goes something like this> [BON D910 K0 M100] This instruction will look at a specific register and a specific bit within that register and move its condition to an internal relay "M100". So, if the overlap 0 was on it would move B0 state to M100, then I can use the on condition of M100 as a good indicator that overlap 0 is on.
My problem, I cannot find an instruction to do this on the A1S plc.
Any ideas?
Tim
Just need to know if anyone knows of an instruction on an A1S plc that will allow me to look for the condition of a specific bit in a data register and move it to a specific destination?
Here is what I'm trying to do. I have a Hakko touch screen hooked up to an A1S Mitsubishi plc. The touch screen has a read and write area in its system memory. The read area is assigned a register and this is where the touch screen is looking for any bits that might be on. Example I used D900 for n, D901 for n+1, and D902 for n+2. Each bit in the registers are allocated to do certain things depending on which bit is turned on. For example, D900 has several functions, 16 to be exact. Bit 0 is allocated to overlap 1. Overlap is just a pop-up display area that sits on the screen currently being displayed. I can call up this overlap several ways, but the way I need to pop-up is when the Plc tells it to. No problem, I use the instruction [BSET D900 KO] in the plc, this works fine.
The problem I'm having is I want to tell the plc if the overlap is actually on. Kind of like the honor system mentioned on a previous post. The touch screen has a write area also that can be set up to reflect the status of the touch screen. Example, D910 bit 0 will turn on if I call up overlap 0 with the plc. What I need to do is use this on condition of bit 0 in D910 to let the plc know that overlap 0 is actually being shown on the screen. The problem is the other 15 bits in D910 may be on or off at times and I can't just say that if D910 = 1 the overlap must be displayed. For instance, in the same data register D910 bit 4 may be assigned to the backlighting. If backlight on the touch screen is on then bit 4 is on, now D910 = 16.
I now in the FX series there is an instruction called BON. I believe it goes something like this> [BON D910 K0 M100] This instruction will look at a specific register and a specific bit within that register and move its condition to an internal relay "M100". So, if the overlap 0 was on it would move B0 state to M100, then I can use the on condition of M100 as a good indicator that overlap 0 is on.
My problem, I cannot find an instruction to do this on the A1S plc.
Any ideas?
Tim