Hi,
Unfortunately, there are currently no tools or methods for scanning logic controllers for command codes with LabVIEW. For a list of commands that the PLC uses, I would reference the user manual for the device or contact the manufacturer.
For many instruments, there are premade VIs for controlling those instruments available on the NI Instrument Driver Network (www.ni.com/idnet) that have been created by other users or the manufacturers. I searched for the Schneider Electric M258 Logic Controller (PLC), but did not see any drivers there. If you are interested in having someone create these driver VIs for you, we have Alliance Partners that can help you with that. (http://www.ni.com/alliance/)
Once you find out the commands from the manual or the manufacturer, you could develop your own driver VIs for the device and, if you feel so inclined, upload them to idnet. Information about how to create instrument drivers for devices to be used in LabVIEW can be found at the following link.
https://www.ni.com/devzone/idnet/development.htm
Best of luck with your instrument driver development!
-Eric
Eric H.
Senior Field Applications Engineer
NI