mistux Site Admin
Joined: 25 Jun 2004 Posts: 1042 Location: South Bend, Indiana USA
|
Posted: Fri Mar 19, 2010 8:08 am Post subject: Okuma RS232 TO ROTARY TABLE |
|
|
RS232 TO ROTARY TABLE
Keith Johanson 10/9/06
To control a rotary table using a serial data commands rather than integrating a 4th axis or
just using M-codes, do the following:
Get/Put and Read/Write must be active on the Okuma control. On newer controls this
should be standard under User Task 2.
Make a serial cable to match the requirements of the Okuma and the particular table
controller you are using.
Set the interface parameters on the Okuma (Optional Parameter: READ/WRITE) and the
table controller.
Determine the command string for the table and send the data from the Okuma control
with the following commands:
N10 PUT ‘A90’
N20 WRITE 0
N30 M181
Line N10 contains the command for the table movement and stores it in a buffer in the
Write Buffer in the Okuma control. It may be more complicated than just A90 (move A
axis to 90 degrees). You will need to send whatever is required by the table controller.
Each PUT command is limited to 16 characters. Multiple PUT commands can be used up
to a total of 160 characters. If necessary some special characters can be used:
PUT $0A (LINE FEED)
PUT $OD (CARRAGE RETURN)
PUT $ODOA (CARRAGE RETURN/LINE FEED)
Line N20 will send the contents of the Write Buffer out serial port 0. Valid serial port
designations are 0 – 4.
Line N30 sends out an optional M-code to the Table Controller and waits for a
confirmation. This is necessary to ensure the table has completed its movement before
any further machining can be done. |
|