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.

Example 1:

Commissioning procedure:

  • The input parameter sProjector must be adjusted to the IP address of the projector that is to be controlled.
  • The input parameter sSecurityPW must match the PJLink password in the projector settings. (Optional: only when PJLink security authorization is enabled.)
  • Set the input parameter bEnable to TRUE to establish communication with the projector.

Comments regarding the program code:

Example 3:
Example of the power-on command. The command is triggered by setting bPowerExecute.
Example 4:

Additional notes:

Example 5:

The download contains a TwinCAT project and the compiled library "Tc3_PJLink". This library must first be installed via the library repository. (See https://infosys.beckhoff.com/content/1033/te1000_xae_overview/html/te1000_xae_intro.htm(PLC > Libraries).)

Example 6:

The integrated libraries "Tc2_TcpIp", "Tc3_Module" and "Tc2_Utilities" are required for using the PJLink implementation.