
Yin (Customer) asked a question.
How to determine slot number?
I just bought the start kit one to practice the program on it. My first question is how to determine the slot number for the module.

Yin (Customer) asked a question.
I just bought the start kit one to practice the program on it. My first question is how to determine the slot number for the module.
Copyright © 1999-2023 AutomationDirect. ALL RIGHTS RESERVED
Modules can be placed into any "slot" on the right of the P1AM CPU. A slot is really just a holdover term from other form factors of PLCs. In the case of P1, "Slot 1" is next to the CPU and "Slot 2" is the next module to the right of "Slot 1" and so on.
The example PrintModules will show what slot a module is in and includes an illustration of the above description of slots as well
I figured out a relatively simple method to send the modules slot position to the P1AM as a usable integer. I wish facts would look at that and include it in a new library. It would take a lot of guess work out of the equation.
Hey Frank,
Could you elaborate on the feature you'd like to see and the goal?
Could you share your code that you are using currently? You can PM me if you prefer.
Thanks
Adam
Hi Adam,
When I use P1.printModules, monitor will only display the modules which connect on right of P1AM-100, will not show left side modules. How to check the module which connect to left side of P1AM-100?
Left side modules(shields) cannot be queried directly to see if they are there. In the case of the P1AM-ETH, you should see the code fail quickly if the shield is missing. In the case of the P1AM-GPIO, there is no way to confirm it is connected programmatically. You could hardwire a pin on the P1AM-GPIO to VCC or ground and have the internal pull-up go the other direction. This would let you confirm the shield is plugged in and could be similarly replicated on a P1AM-PROTO.
Hey Frank,
I apologize for the delay and inconvenience. Things are pretty busy around here and unfortunately the change has not completed all the processes needed to release. I don't have an ETA currently as to when it may be completed, but make sure you "watch" the P1AM GitHub repository so you will be notified of any new release.
Thanks
Adam
Apr 4, 2022 8:35:50 AM Community Admin <communitymod@automationdirect.com>:
Hey Frank,
It is in our private message thread.
Thanks
Adam