WKla Posted April 12, 2007 Report Posted April 12, 2007 Hello. I use FX1N with FX1N 232BD interface module and F930GOTK-E with keyboard. I want to print some data: numbers from registers and text. The printer is Seiko DPU30. An example: Low limit=D100=300. High limit=D102=12000. What I want to print: Low limit: 300 High limit: 12000 Could you give me some advice? Thank you. Quote
panic mode Posted April 13, 2007 Report Posted April 13, 2007 learn how to use serial connection to send data from one PC port to another (or to another PC). hint - you will need crossover cable and learn about port settings (all you need to know is that on RS232 both nodes must have ALL settings same, on multi-drop networks is the same - except that each node will have unique address but all other settings are still the same...). if printer has drivers, use them to install printer on you PC first. make sure printing works, then use another PC port to read what ever the application is sending to printer (knoweledge from forst step is required). save this and paste it in PLC D registers, download this to PLC along with some code to send the message and see how that works. i never used FX for this but if I recall there should be some samples in the manuals. Quote
WKla Posted April 13, 2007 Author Report Posted April 13, 2007 I've managed to print data connecting the printer to the computer. All I had to do was to send ascii characters to printer. But how do I convert the value of the register D102 to ascii, to be send to the printer. I work in GX IEC Developer and Melsec IL language. I need an efficient method because I need to convert and print a lot of numbers, but any suggestion is appreciated. Thank you. Quote
Crossbow Posted April 13, 2007 Report Posted April 13, 2007 There are commands in the FX to convert numbers (16 or 32 bit) to ASCII. Check the FX Programming Manual II. Quote
wizard Posted April 15, 2007 Report Posted April 15, 2007 WKla, you really should read the manuals. Mitsubishi explains very well the RS communication and the functions used to convert numbers to ASCII. 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.