calvinli1681 Posted July 28, 2005 Report Posted July 28, 2005 Hey Siemens Experts, Does anyone know how to direct access CPU via the panel bottons? I want to press a botton on the TD200C panel without hit enter key on the panel and the instraction can be fetch to the CPU, such as direct access to a memory location. Please give some help! javascript:emoticon('') smiliejavascript:emoticon('') smilie Quote
Crossbow Posted July 28, 2005 Report Posted July 28, 2005 There is a way to set the buttons on the TD200C to memory bits. It's configured in the TD200 wizard in Step 7-MicroWIN/32. If you're using the default key layout, when you exit the wizard it creates some symbol names based on the names you deifned in the wizard for the buttons. You can then reference those bits directly in your program. I just set one up in VB0-VB63, and the bits for the keys are in V57(.0/1/2/3) and Shift plus the keys in V59(.4/5/6/7). They were given symbolic names of F1, F2, F3, F4, and S_F1, S_F2, S_F3, S_F4 for shift FKeys. Quote
calvinli1681 Posted July 28, 2005 Author Report Posted July 28, 2005 Thanx very much for your response Chris, i have got that part handled, what i a trying to is to use the up or down botton to send the message to CPU and CPU will do the increment or decrement of the value. At the moment, i can only set a value up on the TD200C and hit enter to send down to the CPU memory location which i have signed to in the wizard. So have you got some more experience on this kind of issues please? Thanx heaps for your help! Quote
Crossbow Posted July 29, 2005 Report Posted July 29, 2005 If you use the keypad designer and develop your own keypad (even if it mimics the factory cover) and load that when setting up the TD200 wizard, you can set the buttons for Set Bit. Then in your program, look for the rising edge of that button, run an ADD or INC instruction, and then reset the bit. Same for down. If you include a shift button on your screen, you can also use Shift and the arrow to for example add or subtract 10 instead of 1. Just some ideas for you... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.