
pauljurczak (Customer) asked a question.
Why these inputs have no effect?
I'm using LS Electric XEM-DN32H2 PLC, XG5000 IDE and Structured Text. I have a proximity sensor prox on B20 and a switch on B19. I expected the led1 and led2 to reflect their state, but when the program runs, only led0 is on. Here is the program:
- led0 := TRUE;
- led1 := prox;
- led2 := switch;
I also tried to force the state of the inputs:
and there is no effect. Do I need an additional configuration, in order to make these inputs active? I checked the voltage on B20 and B19 and the sensors are working as expected. B01 and B02 are at 0V. Also, the input indicator LEDs on XEM-DN32H2 are not detecting the state of the proximity sensor or the switch.
See our interactive help site topic on forcing I/O. There are also other topics that may be helpful to you.
https://cdn.automationdirect.com/static/helpfiles/ls_plc/Content/C_ProcedureTopics/LP112.htm?tocpath=%20Procedures%7CPLC%20-%20The%20Basics%7C_____13
Are your input sensors NPN or PNP?
Proximity sensor is NPN. The switch is just a mechanical switch. Should the input LED reflect the state of the switch without any additional configuration?
Your code is fine. Your wiring may be wrong. Do you have +24VDC wired to terminal A10 or terminal B10? Those are the terminals for the input commons.
An Automationdirect created terminal block label can be downloaded from the download section of the XTB-40H (https://www.automationdirect.com/adc/shopping/catalog/programmable_controllers/ls_electric_xgb_plcs_(stackable_micro)/wiring_solutions/xtb-40h).
No. Input commons are wired to B01 and B02, as the manual suggests:
This is from our tech spec pages. It is correct. The A's and B's from the user manual don't have a 1 to 1 mapping with the XTB-40H pin out. The XTB-40H was created separately from the XEM CPU.
What document contains this drawing? I don't see one on https://www.automationdirect.com/adc/shopping/catalog/programmable_controllers/ls_electric_xgb_plcs_(stackable_micro)/wiring_solutions/xtb-40h page.
https://cdn.automationdirect.com/static/specs/lsplcoverview.pdf
Thank you. This mapping was very unexpected, especially given that both the PLC and terminal block are from the same manufacturer and are using the same pin names, i.e. A01~A20 and B01~B20.