MSG_PCCC (programmable controller communication commands message)

The MSG_PCCC instruction sends a PCCC message over an Ethernet channel or a serial port.
The commands supported: SLC Typed Read and SLC Typed Write.
Operation details:
  • When sending the PCCC message over an Ethernet channel and more than four function block requests are in queue for CIP_GENERIC_FB, CIP_SYMBOLIC, or PCCC_MSG_FB, up to four messages per channel can be processed in one scan.
    For ladder diagram programs, message requests are executed at the end of a ladder scan.
  • When sending the PCCC message over a serial port and more than eight function block requests are in queue for serial communication, a total of eight messages on all channels can be processed in one scan.
    For ladder diagram programs, message requests are executed at the end of a ladder scan.
Languages supported: Function block diagram, ladder diagram, structured text.
The instruction applies to the L70E and L50E controllers.
MSG_PCCC
MSG_PCCC
MSG_PCCC parameters
Parameter
Parameter Type
Data Type
Description
IN
Input
BOOL
Rung input state.
  • TRUE: Rising edge detected, start the function block with the precondition that the last operation has been completed.
  • FALSE: Rising edge not detected, not started.
CtrlCfg
Input
CIPCONTROLCFG
Function block execution control configuration. Use the CIPCONTROLCFG data type to define CtrlCfg.
PCCCCfg
Input
PCCC_CFG
The PCCC commands and address. Use the PCCCCFG data type to define PCCCCfg.
TargetCfg
Input
CIPTARGETCFG
Target device configuration. Use the TARGETCFG data type to define TargetCfg.
Q
Output
BOOL
  • True: The MSG instruction is completed.
  • False: The MSG instruction is not completed.
Status
Output
CIPSTATUS
The execution status of the function block.
When an MSG instruction is triggered or retriggered, all the Status elements are reset.
The Status output is defined in CIPSTATUS data type.
DataLength
Output
UINT
The number of data bytes for CIPPCCC message response.
When an MSG is triggered or retriggered, DataLength is reset to 0.
DataLength is supported when a PCCC message is sent over an Ethernet channel.

MSG_PCCC examples

MSG_PCCC function block diagram example
MSG_PCCC function block diagram example
MSG_PCCC ladder diagram program example
MSG_PCCC ladder diagram program example
MSG_PCCC structured text program example
MSG_PCCC structured text program example
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal