welcome to the forum.
i would copy the inputs into a bit file and use messages to get the data.
Yes, you can wire directly, but you must pay attention to the wiring neutral, panel power sources, grounding, use yellow or orange wire to designate external power wiring interface, and label the control panel with placard indication external power when the main disconnect is off. its been a while since i did this, so the rules may have changed. look at nfpa 79 - electrical standard for industrial machinery. other codes may apply.
james