10 system connections, 1 overview – Pilz PSENvip RL D P User Manual
Page 135

Pilz GmbH & Co. KG, Felix-Wankel-Straße 2, 73760 Ostfildern, Germany
Telephone: +49 711 3409-0, Telefax: +49 711 3409-133, E-Mail: [email protected]
10-5
10.1
Overview
10
System Connections
RisingFlagE1
: R_TRIG;
// FUNCTION block rising edge for Signal E1
bComEnd
: BOOL;
// End of communication
bToolchangeFlag
: BOOL;
// Rising edge for start of the communication
bToolValidFlag
: BOOL;
// Rising edge for valid tool from PSENvip
bStartCom
: BOOL;
// Start communication
bToolValid
: BOOL;
// Tool from PSENvip is valid
uiToolTypePSENvip
: SAFEUINT;
// Tool type from PSENvip
END_VAR
// Communication between PSENvip and PSS4000
CAL
RisingFlagE0(
clk := bStartToolChangeE0,
q => bToolchangeFlag
)
LD
bToolchangeFlag
S
bStartCom
// Waiting for the communication start
LDN
bStartCom
ORN
bStartToolChangeE0
JMPC RESTORE
// Acknowledge for the communication from PSS4000 to PSENvip
LD
TRUE
ST
bAcknowledgeToolChangeA0
CAL
RisingFlagE1(
clk := bValidToolChangeE1,
q => bToolValidFlag
)
LD
bToolValidFlag
S
bToolValid
// Waiting for the tool valid signal from PSENvip