BT San Technology

Knowledge

Technical guides with sample code we ran, its real output, and references.

  1. Illustration: a PLC signal training panel with sensors and a screen sorting signal types
    Automation2 min readDI, DO, AI and AO: Reading a Machine's I/O ListInputs and outputs are named from the controller's side. DI/DO carry on/off signals or commands; AI/AO carry continuous values within the device's range, such as weight or a control value that needs scaling.
  2. Illustration: two industrial sensors with input modules and datasheets
    Automation2 min readNPN vs PNP: Matching a Sensor to the PLC InputNPN/PNP describes the transistor output and how it pairs with the input circuit; NO/NC describes switching behaviour. They are separate things, and two sensors that look alike may not be interchangeable.
  3. Illustration: a PLC, a communication gateway and a network switch set up as a test rig
    Automation26 min readModbus RTU vs TCP: Where RS485 and Ethernet FitRS485 and Ethernet are the wire; Modbus is the language spoken over it. Wiring, serial settings, register numbering, 32-bit byte order and a runnable byte-level Python example (Thai text).
  4. Illustration: a diagnostic laptop on a cart next to a control cabinet
    Automation26 min readPLC and HMI Not Communicating: Separating Port, Settings and Data ProblemsA layered walk-through for an HMI that will not talk to a PLC: TCP, unit id, shifted addresses, swapped float words, slow or lost replies and exception codes, with runnable TypeScript against a simulated PLC, real output and a manual physical-layer checklist (Thai text).
  5. Illustration: a board in a clear case connected through an isolation module to a DIN-rail I/O unit
    Automation2 min read3.3 V and 5 V GPIO versus factory I/O: why a direct connection does not always workCompatibility depends on voltage, current, direction, circuit type and isolation, not on both sides having inputs and outputs. Pin groups on one board can differ, so read the pinout together with the electrical characteristics.
  6. Illustration: a finned edge box, a DIN-rail PLC, two boards, an oscilloscope and a linear stage
    Automation2 min readBare-metal, RTOS, Linux and the PLC scan cycle: timed work versus heavy processingSensor reads, communication and image work have different timing needs. An operating system or a PLC does not meet every deadline by itself; the scheduler, task design, communication and real measurements all count.
  7. Illustration: jumper wires, a terminal block, twisted-pair cable, an RJ45 plug and sensor modules
    Automation2 min readUART, SPI, I2C, RS485 and Ethernet: choosing a connection at the right layerThese names do not describe the same layer. UART logic levels are not RS485, and Ethernet does not say which application protocol runs on it. Data only gets through when the electrical side, the framing and the meaning all match.
  8. Illustration: hands plugging a USB cable into a board, a laptop showing code and an LED matrix
    Automation2 min readArduino IDE done properly: what the board core, libraries and Serial Monitor doThe IDE is where you write and build, the board core defines how code is compiled for the chip, and libraries add device support. A sketch that builds on one machine and fails on another may be a tool-version difference, so record the environment.
  9. Illustration: a push button, three LEDs, a servo, a small board and an oscilloscope showing square waves
    Automation2 min readdelay versus millis: writing Arduino code that handles several jobs without blockingdelay stops the sketch where it is called, so buttons or incoming data can be missed. Elapsed-time checks and a state machine let the loop come back to several jobs, but they do not create parallel execution or meet deadlines by themselves.
  10. Illustration: a breadboard prototype beside an open sealed enclosure with a DIN-rail unit, power supply, terminals and cable glands
    Automation2 min readFrom Arduino prototype to a working machine: what to add besides a boxA prototype proves the idea quickly, but long-term installation adds power, connectors, heat, noise and repair. Whether to keep a ready-made board or design a PCB depends on volume, site conditions and lifetime cost.
  11. Illustration: a hand holding a probe on a board, with a debugger on a ribbon cable
    Automation2 min readSTM32CubeMX, CubeIDE and ST-LINK: configure, program and debug so problems can be foundCubeMX configures the chip and generates project code, CubeIDE is for development and debugging, and CubeProgrammer handles programming and memory. A debugger shows real values and execution order, but generated code still has to be understood.

Add us on LINE

Scan with the LINE app on your phone

QR code to add LINE @Bankoos

LINE ID: @Bankoos

Open LINE on this computer