
Grand Country (Customer) asked a question.
Has anyone connected more than one of the P1-02HSC cards to the P1AM-100? I have a project that will have 6 stepper motors with encoders (3 STP-MTR-23055E and 3 STP-MTR-23079E), and I need to know all of their positions. I know there's code examples for a single HSC card, but I need one card per motor. How would I go about writing the code to read from each individual card?
Thanks in advance!
You can create multiple class objects from the P1_HSC_Module class. The naming of each object can be whatever you want but needs to be unique and assigned the slot number the module is in.
In he ReadPosition example on line 29 is an example of how to create a class object along with the slot number the module is in.