SYS1 PLC link time setting

This sets the system setting time when a PLC link is used, based on the contents specified by the character constant.

Remarks

  • The program should be placed at the beginning of all PLCs being linked, and the same values specified.

  • This instruction should be specified in order to set special internal flag R9014 as the differential execution condition.

  • The setting contents of the system registers are not affected by this instruction being executed.

  • Separate first and second keywords with a comma "," and do not use spaces.

  • Precautions when setting the link entry wait time

    • This should be specified such that the value is at least twice that of the largest scan time of all the PLCs that are linked.

    • If a short value has been specified, there may be some PLCs that are not able to join the link even though the power supply for that PLC has been turned on.

    • If there are any stations that have not joined the link, the setting should not be changed, even if the link transmission cycle time is longer as a result. (The default value is 400 ms.)

  • Precautions when setting the error detection time for the transmission assurance flag

    • This should be specified such that the value is at least twice that of the largest transmission cycle time of all the PLCs that are linked.

    • If a short value has been specified, there is a possibility that the transmission assurance flag will malfunction.

    • The setting should not be changed, even if the detection time for the transmission assurance flag is longer than the result. (The default value is 6400ms.)

  • The conditions specified by the first keyword are set as the time specified by the second keyword. The first and second keywords are separated by a comma.

  • The setting for the link entry waiting time is set if the transmission cycle time is shortened when there are stations that have not joined the link. (Stations that have not joined the link: Stations that have not been connected between the first station and the station with the largest number, or stations for which the power supply has not been turned on.)

  • The error detection time setting for the transmission assurance flag is set if the time between the power supply being turned off at one station and the transmission assurance flag being turned off at a different station is to be shortened.

Keyword setting

  1. Link entry wait time

    PCLK1T0,100

    PCLK1T0

    fixed

    100

    Specified range:

    10–400 (10–400 ms)

  2. Error detection time for transmission assurance flag

    PCLK1T1,100

    PCLK1T1

    fixed

    100

    Specified range:

    100–6400 (100–6400 ms)

Error flags

sys_bIsOperationErrorHold (turns to TRUE and remains TRUE)
  • if any character other than a keyword is specified

  • if no comma is between the first and second keywords

  • if small letters of the alphabet are used to specify the keyword

  • if the specified value is outside the specified range

sys_bIsOperationErrorNonHold (turns to TRUE for one scan)
  • if any character other than a keyword is specified

  • if no comma is between the first and second keywords

  • if small letters of the alphabet are used to specify the keyword

  • if the specified value is outside the specified range

Example

Because FP addresses and strings are entered directly instead of using variables, no POU header is required.

When sys_bIsNotFirstScan turns on when a PLC link is being used, the link entry wait time and the error detection times for transmission assurance flag are set as follows:

  • Link entry wait time: 100ms

  • Error detection time for transmission assurance flag: 100ms.

LD body

BODY
    WORKSPACE
        NETWORK_LIST_TYPE := NWTYPELD ;
        ACTIVE_NETWORK := 0 ;
    END_WORKSPACE
    NET_WORK
        NETWORK_TYPE := NWTYPELD ;
        NETWORK_LABEL :=  ;
        NETWORK_TITLE :=  ;
        NETWORK_HEIGHT := 9 ;
        NETWORK_BODY
B(B_CONTACT,,sys_bIsNotFirstScan,5,1,7,3,R);
B(B_F,SYS1!,Instance,16,0,22,4,,?DEN?H@'s'?AENO);
B(B_VARIN,,'PCLK1T0~100',14,2,16,4,);
B(B_F,SYS1!,Instance,16,5,22,9,,?DEN?H@'s'?AENO);
B(B_VARIN,,'PCLK1T1~100',14,7,16,9,);
L(1,2,5,2);
L(7,2,16,2);
L(8,2,8,7);
L(8,7,16,7);
L(1,0,1,9);
        END_NETWORK_BODY
    END_NET_WORK
END_BODY
NOTE

The values entered at s* will be right aligned automatically by the compiler.

Modified on: 2024-03-08Feedback on this pagePanasonic hotline