Example
The Tc3_PJLink_Sample.zip contains a PLC program to illustrate the use of FB_PJLink
. Different commands can be sent to a projector once communication has been successfully established.
![]() | Commissioning procedure:
|
Comments regarding the program code:
- Calling
FB_PJLink
in thepjlink
method in theMAIN
program:

- Once the connection to a projector has been successfully established, methods can be called in the
MAIN
program to send commands to the projector:

Example of the power-on command. The command is triggered by setting bPowerExecute
.
- If the following error message is logged, the parameter
sSecurityPW
does not match the security password set for the projector.

Additional notes:
- The example can also be tested in conjunction with the PJLink test software ("TEST4CNT"), which is used to simulate a projector. The software is available for download from http://pjlink.jbmia.or.jp/english/.
- The TwinCAT Function TF6310 "TwinCAT TCP/IP" is required for this example.
![]() | The download contains a TwinCAT project and the compiled library "Tc3_PJLink". This library must first be installed via the library repository. (See PLC > Using libraries) |
![]() | The integrated libraries "Tc2_TcpIp", "Tc3_Module" and "Tc2_Utilities" are required for using the PJLink implementation. |