0:04
The ACC PLC simulator now supports
0:06
gamepad input. You can plug in any
0:08
standard USB or Bluetooth controller and
0:11
drive PLC inputs, control analog values,
0:13
navigate 3D scene cameras, and run your
0:16
program without ever touching the
0:17
keyboard. There is nothing to install.
0:20
It works with Xbox and PlayStation
0:22
controllers, as well as most generic USB
0:24
and Bluetooth game pads.
0:27
Detailed information contained in this
0:29
video can be found at
0:30
accccclautomation.ca.
0:32
A link has been put in the description
0:34
below. The website offers extensive
0:36
links, references, and coding samples,
0:39
making it a one-stop shop for all your
0:41
automation queries. Once again, that is
0:48
Here is why a gamepad is useful for PLC
0:51
simulation. Analog sticks and triggers
0:53
map to AX1 through AX5 with a range of 0
0:56
to 4095. That is the same range a real
0:59
potentiometer or 4 to 20 milliamp
1:01
transmitter produces. You can smoothly
1:04
control analog inputs the way a real
1:06
process signal would behave. Face
1:08
buttons act exactly like momentary push
1:10
buttons. Press A and X1 goes true.
1:14
Release A and X1 goes false.
1:17
And system buttons give you hands-free
1:21
Start runs the program.
1:23
Select stops it. Left stick click
1:26
executes a single step. Getting started.
1:30
To get started, plug in your controller
1:32
and open the simulator. Press any button
1:37
The toolbar badge will change from
1:38
Notepad to a green badge showing your
1:43
That is it. No drivers, no
1:44
configuration. The simulator uses the
1:47
W3C Gamepad API built into the browser.
1:51
Digital input mapping. The face buttons
1:54
map to digital inputs.
2:04
The D-pad maps to X5 through X8.
2:08
The shoulder buttons LB and RB map to X9
2:11
and X10. All of these are momentary.
2:14
They are on while you hold the button
2:15
and off when you release it. Just like
2:18
real push buttons on a PLC trainer.
2:21
Analog input mapping.
2:24
The analog controls map to analog
2:25
inputs. The left trigger LT maps to AX1.
2:30
The right trigger RT maps to AX2.
2:33
Both go from 0 to 4095.
2:36
The left stick Yaxis is AX3 and Xaxis is
2:41
The right stick X-axis is AX5.
2:45
All of these are centered at 2048 with
2:47
built-in dead zone filtering.
2:52
The system controls let you operate the
2:54
simulator from the gamepad. Press start
2:56
or options to put the simulator in run
3:00
Press select or share to stop it. Click
3:03
the left stick to execute a single step
3:05
scan. The right stick Y-axis zooms the
3:12
Click the right stick to reset the zoom
3:16
Camera navigation in 3D scenes. In the
3:19
3D scenes, the analog sticks control the
3:23
The right stick orbits the camera around
3:25
the scene. The left stick Y-axis zooms
3:28
in and out. You can orbit around a
3:30
conveyor, zoom into a control panel, and
3:32
press buttons on the gamepad all at the
3:36
This is the advantage of a gamepad over
3:38
a mouse and keyboard.
3:44
When you have the simulator and scenes
3:46
open in separate windows, the gamepad
3:48
only sends input to the window that has
3:50
focus. Press a button and only the
3:52
window you are looking at responds. If
3:54
you switch away while holding a button,
3:56
the system automatically releases it to
3:58
prevent stuck inputs.
4:01
If you are enjoying this video, please
4:03
hit the like button below. Keeping up
4:04
with all the latest automation
4:06
innovations can be difficult, so hit the
4:08
subscribe button. Remember to hit the
4:10
bell next to your subscription to
4:11
receive notifications.
4:16
The gamepad follows the same input
4:18
ownership rules as the rest of the
4:22
When a 3D scene is driving an address
4:24
through its sensors or push buttons, the
4:25
gamepad cannot override that address.
4:29
The scene always wins. For example, the
4:31
conveyor scene drives X3 and X4 through
4:34
its proximity sensors. Pressing Y on the
4:37
gamepad will not affect X4 because the
4:39
scene owns it. The gamepad still
4:41
controls all the addresses that the
4:46
Try it with the control panel scene. Try
4:49
the gamepad with the control panel
4:50
scene. Press A for start. The motor run
4:55
pilot light turns on.
5:09
Press X for jog, the motor runs while
5:13
You can run the entire start stop jog
5:15
program from a controller without
5:16
touching the mouse or keyboard.
5:19
Head over to acccaation.ca/simulator
5:23
to try gamepad support yourself.
5:26
Plug in a controller and press any
5:27
button to get started.
5:30
If you found this helpful, subscribe to
5:32
ACC Automation for more PLC tutorials.
5:35
Many PLC manufacturers offer a range of
5:38
hardware and software. All programmable
5:40
logic controllers share similar basic
5:42
features. Once you are familiar with the
5:43
basics of the PLC, you will learn the
5:45
specifics of the controller you will be
5:47
programming. This is the easiest way to
5:50
learn about PLC programming. Click here
5:51
to see how I approach learning about
5:56
Click here to see how you can program
5:57
for free with the ACC PLC simulator with
6:00
3D scenes you can program.