|
Last edited by JPoepsel In 2018-10-22 19:24 Editor
Hi ytliu!
You mentioned how to read/write 32 bits by the RS232 IO expansions.
Well, I'm just planning to do automatic tool changing with the DDCSV using M8/9 M10/M11. This two IO-pins may be enough, but when I plan a self-sufficient tool change e.g. by a tool change carousel, the tool changer needs the desired tool number… So I'm thinking about adding an ESP32 (or something similar) controlling the tool changer and communicating by serial IO with the DDCSV. Do you think, that may work (of course with some macros)?
The Question: you mentioned how the IO bits are mapped to the internal variables, but did not mention how to start writing/reading over the serial port. If I understand it right, M100 will do the job for reading (I understood, that M100 will wait for a specific bit change but I guess, all 32 bits will be updated to the internal variables with this instruction), but you did not mention how to SEND bits. Or does M100 first send and then read the bits all together?
Would be great to get some hints.
Josef
P.S.: Silly Question: Is the "serial port" the one feed out on the MPG conector or the internal one as it can be seen here: http://bmuessig.eu/ ?
|
|